lama_byterun/regression/Makefile

20 lines
495 B
Makefile
Raw Normal View History

2019-10-11 17:25:58 +03:00
TESTS=$(sort $(basename $(wildcard test*.expr)))
2018-02-25 15:50:03 +03:00
RC=../src/rc.opt
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
check: $(TESTS)
2018-02-14 15:39:40 +03:00
2018-02-25 15:44:28 +03:00
$(TESTS): %: %.expr
2019-04-11 17:19:32 +03:00
@echo $@
2019-10-15 01:54:57 +03:00
$(RC) $< && cat $@.input | ./$@ 2> /dev/null > $@.log && diff $@.log orig/$@.log
2019-10-16 01:13:52 +03:00
# cat $@.input | $(RC) -i $< > $@.log && diff $@.log orig/$@.log
2019-10-15 01:54:57 +03:00
cat $@.input | $(RC) -s $< 2> /dev/null > $@.log && diff $@.log orig/$@.log
2018-02-14 15:39:40 +03:00
clean:
2018-12-03 15:10:43 +03:00
$(RM) test*.log *.s *~ $(TESTS)
$(MAKE) clean -C expressions
$(MAKE) clean -C deep-expressions
$(MAKE) clean -C x86only