forked from esl/ejabberd_tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
56 lines (48 loc) · 1.37 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
.PHONY: all test console compile
all: test
test_clean: escalus/Makefile
rm -rf tests/*.beam
make test
cover_test_clean: escalus/Makefile
rm -rf tests/*.beam
make cover_test
test: escalus/Makefile prepare
erl -noinput -sname test -setcookie ejabberd \
-pa `pwd`/tests \
`pwd`/escalus/ebin \
`pwd`/escalus/deps/exml/ebin \
`pwd`/escalus/deps/lxmppc/ebin \
`pwd`/escalus/deps/base16/ebin \
-s run_common_test ct
cover_test: escalus/Makefile prepare
erl -noinput -sname test -setcookie ejabberd \
-pa `pwd`/tests \
`pwd`/escalus/ebin \
`pwd`/escalus/deps/exml/ebin \
`pwd`/escalus/deps/lxmppc/ebin \
`pwd`/escalus/deps/base16/ebin \
-s run_common_test ct_cover
cover_summary: escalus/Makefile prepare
erl -noinput -sname test -setcookie ejabberd \
-pa `pwd`/tests \
`pwd`/escalus/ebin \
`pwd`/escalus/deps/exml/ebin \
`pwd`/escalus/deps/lxmppc/ebin \
`pwd`/escalus/deps/base16/ebin \
-s run_common_test cover_summary
prepare:
cd escalus; make
erlc -Iescalus/deps/exml/include \
-Iescalus/deps/lxmppc/include \
run_common_test.erl
mkdir -p ct_report
console: escalus/Makefile
cd escalus; make
erl -sname test -setcookie ejabberd \
-pa `pwd`/tests \
`pwd`/escalus/ebin \
`pwd`/escalus/deps/exml/ebin \
`pwd`/escalus/deps/lxmppc/ebin \
`pwd`/escalus/deps/base16/ebin
escalus/Makefile:
git submodule update --init --recursive