lama_byterun/regression/Makefile

29 lines
978 B
Makefile
Raw Normal View History

2023-09-04 21:45:50 +02:00
DEBUG_FILES=stack-dump-before data-dump-before extra-roots-dump-before heap-dump-before stack-dump-after data-dump-after extra-roots-dump-after heap-dump-after
TESTS=$(sort $(filter-out test111, $(basename $(wildcard test*.lama))))
2018-02-25 15:50:03 +03:00
2020-02-16 00:21:15 +03:00
LAMAC=../src/lamac
2018-02-14 15:39:40 +03:00
2019-09-10 00:46:10 +03:00
.PHONY: check $(TESTS)
2018-02-14 15:39:40 +03:00
2023-09-04 21:45:50 +02:00
check: ctest111 $(TESTS) expr_tests
2018-02-14 15:39:40 +03:00
2020-02-16 00:21:15 +03:00
$(TESTS): %: %.lama
2023-09-04 21:45:50 +02:00
@echo "regression/$@"
@cat $@.input | LAMA=../runtime $(LAMAC) -i $< > $@.log && diff $@.log orig/$@.log
@cat $@.input | LAMA=../runtime $(LAMAC) -ds -s $< > $@.log && diff $@.log orig/$@.log
@LAMA=../runtime $(LAMAC) $< && cat $@.input | ./$@ > $@.log && diff $@.log orig/$@.log
ctest111:
@echo "regression/test111"
@LAMA=../runtime $(LAMAC) test111.lama && cat test111.input | ./test111 > test111.log && diff test111.log orig/test111.log
expr_tests:
make -j -C expressions
make -j -C deep-expressions
2018-02-14 15:39:40 +03:00
clean:
2023-09-04 21:45:50 +02:00
$(RM) test*.log *.s *.sm *~ $(TESTS) *.i $(DEBUG_FILES)
2018-12-03 15:10:43 +03:00
$(MAKE) clean -C expressions
$(MAKE) clean -C deep-expressions