-
Notifications
You must be signed in to change notification settings - Fork 23
/
Makefile
69 lines (53 loc) · 1.6 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
68
69
.PHONY: default rel deps compile clean ct lint dialyzer xref console
.PHONY: test integration_test rerun_integration_test
REBAR = rebar3
ifdef SUITE
SUITE_OPTS = --suite $$SUITE
endif
default: compile
rel:
$(REBAR) release
deps:
$(REBAR) deps
$(REBAR) compile --deps_only
compile:
$(REBAR) 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 $(REBAR) ct -c --verbose $(SUITE_OPTS)
@ $(REBAR) ct -c --verbose $(SUITE_OPTS)
lint:
$(REBAR) as elvis lint
test: compile xref dialyzer ct lint codecov
codecov:
$(REBAR) 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:
$(REBAR) dialyzer
xref:
$(REBAR) xref
console:
@echo "tests can be executed manually using ct:run/1 function:\n" \
' ct:run("test").'
$(REBAR) as test shell