forked from aeternity/mnesia_leveled
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
59 lines (43 loc) · 899 Bytes
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
REBAR3=$(shell which rebar3 || echo ./rebar3)
CT_TEST_FLAGS ?=
space-separate = $(subst ${comma},${space},$(strip $1))
ifdef SUITE
CT_TEST_CLAGS += --suite=$(call comma-separate,$(foreach suite,$(call space-separate,${SUITE}),${suite}_SUITE))
unexport SUITE
endif
ifdef GROUP
CT_TEST_FLAGS += --group=$(GROUP)
unexport GROUP
endif
ifdef TEST
CT_TEST_FLAGS += --case=$(TEST)
EUNIT_TEST_FLAGS += --module=$(TEST)
unexport TEST
endif
ifdef VERBOSE
CT_TEST_FLAGS += --verbose
unexport VERBOSE
endif
ifdef REPEAT
CT_TEST_FLAGS += --repeat=?(REPEAT)
unexport REPEAT
endif
.PHONY: all check test clean run
all:
$(REBAR3) compile
docs:
$(REBAR3) doc
check:
$(REBAR3) dialyzer
ct:
$(REBAR3) ct
eunit:
$(REBAR3) eunit $(EUNIT_TEST_FLAGS)
test: eunit ct
conf_clean:
@:
clean:
$(REBAR3) clean
$(RM) doc/*
run:
ERL_FLAGS="-pz _build/test/lib/mnesia_leveled/test" $(REBAR3) as test shell