This commit is contained in:
Dmitry Boulytchev 2020-03-15 12:41:31 +03:00
parent 5db12d7629
commit c084e57b27
21916 changed files with 68750 additions and 56792 deletions

View file

@ -1,15 +1,16 @@
TESTS=$(basename $(wildcard generated*.expr))
TESTS=$(sort $(basename $(wildcard generated*.lama)))
RC = ../../src/rc.opt
LAMAC = ../../src/lamac
.PHONY: check $(TESTS)
check: $(TESTS)
$(TESTS): %: %.expr
@RC_RUNTIME=../../runtime $(RC) $< && cat $@.input | ./$@ > $@.log && diff $@.log orig/$@.log
@cat $@.input | $(RC) -i $< > $@.log && diff $@.log orig/$@.log
@cat $@.input | $(RC) -s $< > $@.log && diff $@.log orig/$@.log
$(TESTS): %: %.lama
@echo $@
@LAMA=../../runtime $(LAMAC) $< && cat $@.input | ./$@ > $@.log && diff $@.log orig/$@.log
@cat $@.input | $(LAMAC) -i $< > $@.log && diff $@.log orig/$@.log
@cat $@.input | $(LAMAC) -s $< > $@.log && diff $@.log orig/$@.log
clean:
rm -f *.log *.s *~