mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-05 22:38:44 +00:00
Moved x86only tests into stdlib/regression
This commit is contained in:
parent
e4b34a3ec1
commit
eeab48ed33
39 changed files with 10 additions and 59 deletions
1
Makefile
1
Makefile
|
|
@ -24,7 +24,6 @@ uninstall:
|
|||
|
||||
regression:
|
||||
make clean check -C regression
|
||||
make clean check -C regression/x86only
|
||||
make clean check -C stdlib/regression
|
||||
|
||||
clean:
|
||||
|
|
|
|||
|
|
@ -16,4 +16,3 @@ clean:
|
|||
$(RM) test*.log *.s *~ $(TESTS) *.i
|
||||
$(MAKE) clean -C expressions
|
||||
$(MAKE) clean -C deep-expressions
|
||||
$(MAKE) clean -C x86only
|
||||
|
|
|
|||
|
|
@ -1,5 +0,0 @@
|
|||
public fun from_test005 (s) {
|
||||
printf ("called with %s\n", s)
|
||||
}
|
||||
|
||||
printf ("Init Lib01...\n")
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
import Lib01;
|
||||
|
||||
printf ("Init Lib02...\n")
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
import Lib01;
|
||||
import Lib02;
|
||||
|
||||
printf ("Init Lib03...\n")
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
TESTS=$(sort $(basename $(wildcard test*.lama)))
|
||||
LIBS=$(patsubst %.lama,%.o, $(sort $(wildcard Lib*.lama)))
|
||||
|
||||
LAMAC=../../src/lamac
|
||||
|
||||
.PHONY: check $(TESTS)
|
||||
|
||||
check: $(TESTS)
|
||||
|
||||
%.o: %.lama
|
||||
LAMA=../../runtime $(LAMAC) -c -I . $<
|
||||
|
||||
$(TESTS): %: %.lama $(LIBS)
|
||||
LAMA=../../runtime $(LAMAC) -I . $< && cat $@.input | ./$@ > $@.log && diff -u $@.log orig/$@.log
|
||||
|
||||
clean:
|
||||
rm -f test*.log *.i *.o *.s *~ $(TESTS)
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
Init Lib01...
|
||||
called with that one
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
Init Lib01...
|
||||
Init Lib02...
|
||||
Init Lib03...
|
||||
main dish.
|
||||
|
|
@ -1 +0,0 @@
|
|||
|
||||
|
|
@ -1 +0,0 @@
|
|||
0
|
||||
|
|
@ -1 +0,0 @@
|
|||
0
|
||||
|
|
@ -1 +0,0 @@
|
|||
0
|
||||
|
|
@ -1 +0,0 @@
|
|||
0
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
import Lib01;
|
||||
|
||||
from_test005 ("that one")
|
||||
|
|
@ -1 +0,0 @@
|
|||
0
|
||||
|
|
@ -1 +0,0 @@
|
|||
0
|
||||
|
|
@ -1 +0,0 @@
|
|||
0
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
import Lib03;
|
||||
import Lib02;
|
||||
|
||||
printf ("main dish.\n")
|
||||
|
|
@ -1 +0,0 @@
|
|||
0
|
||||
Binary file not shown.
|
|
@ -723,6 +723,10 @@ extern int Lhash (void *p) {
|
|||
|
||||
extern int Lcompare (void *p, void *q) {
|
||||
# define COMPARE_AND_RETURN(x,y) do if (x != y) return BOX(x - y); while (0)
|
||||
if (q == 0 || p == 0) {
|
||||
failure ("NULL pointer in Lcompare\n");
|
||||
}
|
||||
|
||||
if (p == q) return BOX(0);
|
||||
|
||||
if (UNBOXED(p)) {
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
let version = "Version 1.00, c084e57b2, Sun Mar 15 12:41:31 2020 +0300"
|
||||
let version = "Version 1.00, e4b34a3ec, Sat Mar 21 13:05:14 2020 +0300"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
HashTab internal structure: MNode (-624426958, {[{1, 2, 3}, 100]}, 0, 0, 0)
|
||||
HashTab internal structure: MNode (-624426958, {[{1, 2, 3}, 200], [{1, 2, 3}, 100]}, 0, 0, 0)
|
||||
Searching: Some (100)
|
||||
Searching: Some (200)
|
||||
Searching: Some (200)
|
||||
Replaced: Some (800)
|
||||
Restored: Some (100)
|
||||
Restored: Some (200)
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -1,2 +1,2 @@
|
|||
Number of commands-line arguments: 1
|
||||
arg [0 ] = "./test009"
|
||||
arg [0 ] = "./test26"
|
||||
|
|
@ -16,4 +16,4 @@ local a = token ("a"),
|
|||
exp = expr ({[Left, {add, sub}], [Left, {mul, div}]}, a) (id),
|
||||
i;
|
||||
|
||||
printf ("%s\n", parseString (exp |> bypass (eof), gen (10)).string)
|
||||
printf ("%s\n", parseString (exp |> bypass (eof), gen (5)).string)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue