lama_byterun/regression/Makefile

16 lines
361 B
Makefile
Raw Normal View History

2018-04-03 08:05:10 +03:00
TESTS=$(basename $(wildcard test*.expr))
2018-02-25 15:50:03 +03:00
RC=../src/rc.opt
2018-02-14 15:39:40 +03:00
2018-02-25 15:44:28 +03:00
.PHONY: check $(TESTS)
2018-02-14 15:39:40 +03:00
check: $(TESTS)
2018-02-14 15:39:40 +03:00
2018-02-25 15:44:28 +03:00
$(TESTS): %: %.expr
2018-05-16 09:24:40 +03:00
@$(RC) $< && cat $@.input | ./$@ > $@.log && diff $@.log orig/$@.log
2018-04-25 01:06:18 +03:00
cat $@.input | $(RC) -i $< > $@.log && diff $@.log orig/$@.log
2018-05-04 02:59:23 +03:00
cat $@.input | $(RC) -s $< > $@.log && diff $@.log orig/$@.log
2018-02-14 15:39:40 +03:00
clean:
2018-02-25 15:44:28 +03:00
rm -f test*.log *.s *~ $(TESTS)