lama_byterun/regression/Makefile
danyaberezun 5bfc0a08ec merge
2018-11-12 16:28:21 +03:00

15 lines
360 B
Makefile

TESTS=$(basename $(wildcard test*.expr))
RC=../src/rc.opt
.PHONY: check $(TESTS)
check: $(TESTS)
$(TESTS): %: %.expr
$(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
clean:
rm -f test*.log *.s *~ $(TESTS)