-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathMakefile
67 lines (52 loc) · 1.56 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
.PHONY: default rel deps compile clean ct lint dialyzer xref console
.PHONY: test integration_test rerun_integration_test
ifdef SUITE
SUITE_OPTS = --suite $$SUITE
endif
default: compile
rel:
rebar3 release
deps:
rebar3 deps
rebar3 compile --deps_only
compile:
rebar3 compile
clean:
rm -rf _build
ct:
## in order to run some specific test suite(s) you can override
## the SUITE variable from the command line or as env variable:
## make ct SUITE=some_test_SUITE
## make ct SUITE=some_test_SUITE,another_test_SUITE
## SUITE=some_test_SUITE make ct
## SUITE=some_test_SUITE,another_test_SUITE make ct
@ echo rebar3 ct -c --verbose $(SUITE_OPTS)
@ rebar3 ct -c --verbose $(SUITE_OPTS)
lint:
rebar3 lint
test: compile xref dialyzer ct lint codecov
codecov:
rebar3 as test codecov analyze
integration_test:
./integration_test/stop_test_cluster.sh
./integration_test/build_docker_image.sh
./integration_test/start_test_cluster.sh
./integration_test/test_amoc_cluster.sh
./integration_test/test_distribute_scenario.sh
./integration_test/test_run_scenario.sh
./integration_test/test_add_new_node.sh
rerun_integration_test:
./integration_test/stop_test_cluster.sh
./integration_test/start_test_cluster.sh
./integration_test/test_amoc_cluster.sh
./integration_test/test_distribute_scenario.sh
./integration_test/test_run_scenario.sh
./integration_test/test_add_new_node.sh
dialyzer:
rebar3 dialyzer
xref:
rebar3 xref
console:
@echo "tests can be executed manually using ct:run/1 function:\n" \
' ct:run("test").'
rebar3 as test shell