Makefile 1.51 KB
Newer Older
dbarbera's avatar
dbarbera committed
1 2 3
DISABLED_TESTS=test-branchcoverage/
TEST_CASES=$(filter-out $(DISABLED_TESTS), $(sort $(dir $(wildcard */))))

dbarbera's avatar
dbarbera committed
4 5
DISABLED_BENCHMARKS=test1/ test2/ test3/ test4/ test5/ test6/ test7/ test9/ \
                    test12/ test-branchcoverage/
dbarbera's avatar
dbarbera committed
6
BENCHMARK_CASES=$(filter-out $(DISABLED_BENCHMARKS), $(sort $(dir $(wildcard */))))
dbarbera's avatar
dbarbera committed
7

Daniel Tuulik's avatar
Daniel Tuulik committed
8 9
export EXPECTED_FAILURES=test-typecheck/ test-procedure/ test-demoopengeode/

10
test-parse:
11
	@python3 test.py test-parse $(TEST_CASES)
12

13
test-qgen-parse:
14
	@python3 test.py test-qgen-parse $(TEST_CASES)
15

16 17 18 19 20 21
test-qgen-ada:
	@python3 test.py test-qgen-ada $(TEST_CASES)

test-qgen-c:
	@python3 test.py test-qgen-c $(TEST_CASES)

22 23 24 25 26 27
test-qgen-gt-ada:
	@python3 test.py test-qgen-gt-ada $(TEST_CASES)

test-qgen-gt-c:
	@python3 test.py test-qgen-gt-c $(TEST_CASES)

28
test-ada:
29
	@python3 test.py test-ada $(TEST_CASES)
30

31
test-c:
32
	@python3 test.py test-c $(TEST_CASES)
33

34
test-llvm:
35
	@python3 test.py test-llvm $(TEST_CASES)
36

37
test-vhdl:
38
	@python3 test.py test-c $(TEST_CASES)
39

dbarbera's avatar
dbarbera committed
40 41 42
benchmark:
	@python benchmark.py $(BENCHMARK_CASES)

43 44 45 46 47 48 49 50 51
benchmark-O1:
	@python benchmark.py $(BENCHMARK_CASES) -O1

benchmark-O2:
	@python benchmark.py $(BENCHMARK_CASES) -O2

benchmark-O3:
	@python benchmark.py $(BENCHMARK_CASES) -O3

Maxime Perrotin's avatar
Maxime Perrotin committed
52
coverage:
dbarbera's avatar
dbarbera committed
53 54 55 56
	@for v in $(TEST_CASES) ; \
		do $(MAKE) -C $$v coverage && mv $$v/.coverage* . || exit 1 ; \
	done
	@coverage combine
Maxime Perrotin's avatar
Maxime Perrotin committed
57 58

clean:
dbarbera's avatar
dbarbera committed
59 60 61
	@for v in $(TEST_CASES) ; \
		do $(MAKE) -s -C $$v clean ; \
	done
dbarbera's avatar
dbarbera committed
62

63
.PHONY: test-parse test-qgen-parse test-ada test-llvm benchmark benchmark-O1 benchmark-O2 \
64
	    benchmark-O3 coverage clean