2020-03-15 12:41:31 +03:00
|
|
|
TESTS=$(sort $(basename $(wildcard generated*.lama)))
|
2018-02-25 15:44:28 +03:00
|
|
|
|
2020-03-15 12:41:31 +03:00
|
|
|
LAMAC = ../../src/lamac
|
2018-02-25 15:50:03 +03:00
|
|
|
|
2018-02-25 15:44:28 +03:00
|
|
|
.PHONY: check $(TESTS)
|
|
|
|
|
|
|
|
|
|
check: $(TESTS)
|
|
|
|
|
|
2020-03-15 12:41:31 +03:00
|
|
|
$(TESTS): %: %.lama
|
2023-09-04 21:45:50 +02:00
|
|
|
@echo "regression/deep-expressions/$@"
|
2020-03-15 12:41:31 +03:00
|
|
|
@LAMA=../../runtime $(LAMAC) $< && cat $@.input | ./$@ > $@.log && diff $@.log orig/$@.log
|
2024-07-01 12:48:21 +02:00
|
|
|
@cat $@.input | LAMA=../../runtime $(LAMAC) -i $< > $@.log && diff $@.log orig/$@.log
|
|
|
|
|
@cat $@.input | LAMA=../../runtime $(LAMAC) -s $< > $@.log && diff $@.log orig/$@.log
|
2018-02-25 15:44:28 +03:00
|
|
|
|
|
|
|
|
clean:
|
2018-11-21 14:29:35 +03:00
|
|
|
rm -f *.log *.s *~
|
|
|
|
|
find . -maxdepth 1 -type f -not -name '*.*' -not -name 'Makefile' -delete
|