-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGNUmakefile
28 lines (21 loc) · 903 Bytes
/
GNUmakefile
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
all: *.erl *.hrl lex.xrl grm.yrl
erl -compile *.erl
erl -pa ebin -eval "lexgrm:start(), halt()" -noshell -detached
clean:
rm -f *.beam
run_tests: all
erl +P 1000000 -noshell -eval "eunit:test(test_client), halt()"
run_ping_tests: all
erl +P 1000000 -noshell -eval "eunit:test({test,test_client,ping}), halt()"
run_robustness_tests: all
erl +P 1000000 -noshell -eval "eunit:test({timeout, 10, {test,test_client,robustness}}), halt()"
PERFTESTS = "[\
{timeout, 60, {test,test_client,many_users_one_channel}},\
{timeout, 60, {test,test_client,many_users_many_channels}}\
]"
run_perf_tests: all
erl +P 1000000 -noshell -eval "eunit:test("${PERFTESTS}"), halt()"
run_distributed_tests: all
-killall beam.smp 2>/dev/null
# erl -name "[email protected]" -eval "eunit:test(test_remote), halt()"
erl -noshell -name "[email protected]" -setcookie dchat -eval "eunit:test(test_remote), halt()"