fix regression

This commit is contained in:
Danya Berezun 2023-09-04 21:45:50 +02:00
parent 17a7aa0116
commit 5119f69863
8 changed files with 36 additions and 24 deletions

View file

@ -9,10 +9,10 @@ RM=rm -rf
check: $(TESTS) expr_tests
$(TESTS): %: %.lama
@echo $@
@ulimit -s -S 32768; cat $@.input | $(LAMAC) $@.lama -i > $@.log && diff $@.log orig/$@.log
@echo "lama-compiler/regression/$@"
@ulimit -s -S 32768; cat $@.input | $(LAMAC) $@.lama -i > $@.log && diff $@.log orig/$@.log
@ulimit -s -S 32768; cat $@.input | $(LAMAC) $@.lama -s > $@.log && diff $@.log orig/$@.log
$(LAMAC) $@.lama && cat $@.input | ./$@ > $@.log && diff $@.log orig/$@.log
@$(LAMAC) $@.lama && cat $@.input | ./$@ > $@.log && diff $@.log orig/$@.log
expr_tests:
make -C expressions

View file

@ -7,7 +7,7 @@ LAMAC = ../../src/lama-impl
check: $(TESTS)
$(TESTS): %: %.lama
@echo $@
@echo "lama-compiler/regression/deep-expressions/$@"
@cat $@.input | $(LAMAC) -i $< > $@.log && diff $@.log orig/$@.log
@cat $@.input | $(LAMAC) -s $< > $@.log && diff $@.log orig/$@.log
@LAMA_RUNTIME=../../runtime $(LAMAC) $< && cat $@.input | ./$@ > $@.log && diff $@.log orig/$@.log

View file

@ -7,7 +7,7 @@ LAMAC = ../../src/lama-impl
check: $(TESTS)
$(TESTS): %: %.lama
@echo $@
@echo "lama-compiler/regression/expressions/$@"
@cat $@.input | $(LAMAC) -i $< > $@.log && diff $@.log orig/$@.log
@cat $@.input | $(LAMAC) -s $< > $@.log && diff $@.log orig/$@.log
@LAMA_RUNTIME=../../runtime $(LAMAC) $< && cat $@.input | ./$@ > $@.log && diff $@.log orig/$@.log