2023-09-04 21:45:50 +02:00
|
|
|
DEBUG_FILES=stack-dump-before data-dump-before extra-roots-dump-before heap-dump-before stack-dump-after data-dump-after extra-roots-dump-after heap-dump-after
|
|
|
|
|
TESTS=$(sort $(filter-out test111, $(basename $(wildcard test*.lama))))
|
2018-02-25 15:50:03 +03:00
|
|
|
|
2020-02-16 00:21:15 +03:00
|
|
|
LAMAC=../src/lamac
|
2018-02-14 15:39:40 +03:00
|
|
|
|
2024-07-01 11:37:41 +02:00
|
|
|
UNAME_S := $(shell uname -s)
|
|
|
|
|
|
|
|
|
|
ifeq ($(UNAME_S),Linux)
|
|
|
|
|
else ifeq ($(UNAME_S),Darwin)
|
2024-07-02 17:07:50 +02:00
|
|
|
ARCH = -arch x86_64
|
2024-07-01 11:37:41 +02:00
|
|
|
endif
|
|
|
|
|
|
2019-09-10 00:46:10 +03:00
|
|
|
.PHONY: check $(TESTS)
|
2018-02-14 15:39:40 +03:00
|
|
|
|
2023-09-04 21:45:50 +02:00
|
|
|
|
2024-02-02 17:24:40 +01:00
|
|
|
check: $(TESTS) ctest111
|
2018-02-14 15:39:40 +03:00
|
|
|
|
2020-02-16 00:21:15 +03:00
|
|
|
$(TESTS): %: %.lama
|
2023-09-04 21:45:50 +02:00
|
|
|
@echo "regression/$@"
|
2024-07-01 12:48:21 +02:00
|
|
|
@cat $@.input | LAMA=../runtime $(LAMAC) -i $< > $@.log && diff $@.log orig/$@.log
|
|
|
|
|
@cat $@.input | LAMA=../runtime $(LAMAC) -ds -s $< > $@.log && diff $@.log orig/$@.log
|
2024-07-01 11:37:41 +02:00
|
|
|
@LAMA=../runtime $(LAMAC) $< && cat $@.input | $(ARCH) ./$@ > $@.log && diff $@.log orig/$@.log
|
2023-09-04 21:45:50 +02:00
|
|
|
|
|
|
|
|
ctest111:
|
|
|
|
|
@echo "regression/test111"
|
2024-07-01 11:37:41 +02:00
|
|
|
@LAMA=../runtime $(LAMAC) test111.lama && cat test111.input | $(ARCH) ./test111 > test111.log && diff test111.log orig/test111.log
|
2023-09-04 21:45:50 +02:00
|
|
|
|
2018-02-14 15:39:40 +03:00
|
|
|
clean:
|
2023-09-04 21:48:58 +02:00
|
|
|
$(RM) test*.log *.s *.sm *~ $(TESTS) *.i $(DEBUG_FILES) test111
|
2018-12-03 15:10:43 +03:00
|
|
|
$(MAKE) clean -C expressions
|
|
|
|
|
$(MAKE) clean -C deep-expressions
|