mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-29 01:58:48 +00:00
Sync
This commit is contained in:
parent
5db12d7629
commit
c084e57b27
21916 changed files with 68750 additions and 56792 deletions
|
|
@ -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 *~
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue