-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
43 lines (31 loc) · 1.07 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
all: build-in-tests control-tests
TF=compiler-tests
RUNTIME=./runtime
CHECK=make -j 4 -C $(TF)
CLEAN=make clean -C $(TF)
TEST_RUNS=100
# up to functions
CORE_TESTS=test001 test002 test003 test004 test005 test006 test007 test008 test009 test010 test011 test012 test013 test014 test015 test016 test017 test018 test019 test020 test021 test022 test023 test024 test025 test026 test027 test028 test029 test030
build:
make -C $(RUNTIME)
stack build
build-in-tests: build
stack --no-terminal test -j 4 --test-arguments --qc-max-success=$(TEST_RUNS)
core-tests: build
$(CHECK)/core TESTS="$(CORE_TESTS)"
expressions-tests: build
$(CHECK)/expressions
deep-expressions-tests: build
$(CHECK)/deep-expressions
perfomance-tests: build
$(CHECK)/performance
control-tests: core-tests expressions-tests deep-expressions-tests
# this is separated because travis can't handle amount of 'expressions' tests
travis-tests: core-tests deep-expressions-tests
clean:
make clean -C $(RUNTIME)
$(CLEAN)/core
$(CLEAN)/expressions
$(CLEAN)/deep-expressions
$(CLEAN)/performance
.PHONY: build, clean