-
Notifications
You must be signed in to change notification settings - Fork 84
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·67 lines (58 loc) · 1.63 KB
/
Makefile
File metadata and controls
executable file
·67 lines (58 loc) · 1.63 KB
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
PROJECT_DIR:=$(strip $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))))
all:
@rebar3 compile
compile_test:
@rebar3 as test compile
clean:
@rebar3 clean
@find $(PROJECT_DIR)/. -name "erl_crash\.dump" | xargs rm -f
@find $(PROJECT_DIR)/. -name "*\.beam" | xargs rm -f
@find $(PROJECT_DIR)/. -name "*\.so" | xargs rm -f
dialyzer:
@rebar3 dialyzer
run: all
ifdef node
@# make run node=syn2
@erl -pa `rebar3 path` \
-name $(node)@127.0.0.1 \
-eval 'syn:start().'
else
@erl -pa `rebar3 path` \
-name syn@127.0.0.1 \
-eval 'syn:start().'
endif
test: compile_test
ifdef suite
@# 'make test suite=syn_registry_SUITE'
ct_run -noinput -dir $(PROJECT_DIR)/test -logdir $(PROJECT_DIR)/test/results \
-suite $(suite) \
-pa `rebar3 as test path` \
-erl_args -config $(PROJECT_DIR)/test/sys
else
ct_run -noinput -dir $(PROJECT_DIR)/test -logdir $(PROJECT_DIR)/test/results \
-pa `rebar3 as test path` \
-erl_args -config $(PROJECT_DIR)/test/sys
endif
proper: compile_test
ifdef suite
ct_run -noinput -dir $(PROJECT_DIR)/test/property -logdir $(PROJECT_DIR)/test/results \
-suite $(suite) \
-pa `rebar3 as test path` \
-erl_args -config $(PROJECT_DIR)/test/sys
else
ct_run -noinput -dir $(PROJECT_DIR)/test/property -logdir $(PROJECT_DIR)/test/results \
-pa `rebar3 as test path` \
-erl_args -config $(PROJECT_DIR)/test/sys
endif
killzombies:
@pkill -9 -f beam 2>/dev/null; true
@sleep 1
@epmd -daemon
@echo "Zombie beam processes killed, epmd restarted."
bench: compile_test
@erl -pa `rebar3 as test path` \
-pa `rebar3 as test path`/../test \
-name syn_bench_master@127.0.0.1 \
-noshell \
+P 5000000 \
-eval 'syn_benchmark:start().'