mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-15 19:28:47 +00:00
Imported tests
This commit is contained in:
parent
74341d0f5f
commit
30537ff6ba
7 changed files with 17 additions and 530 deletions
|
|
@ -1,13 +1,14 @@
|
|||
TESTS=$(basename $(wildcard generated*.expr))
|
||||
|
||||
RC = ../../src/rc.opt
|
||||
|
||||
.PHONY: check $(TESTS)
|
||||
|
||||
check: $(TESTS)
|
||||
|
||||
$(TESTS): %: %.expr
|
||||
RC_RUNTIME=../../runtime ../../rc.native $< && cat $@.input | ./$@ > $@.log && diff $@.log orig/$@.log
|
||||
cat $@.input | RC_RUNTIME=../../runtime ../../rc.native -i $< > $@.log && diff $@.log orig/$@.log
|
||||
cat $@.input | RC_RUNTIME=../../runtime ../../rc.native -s $< > $@.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 *.log *.s *~ $(TESTS)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue