forked from lasp-lang/partisan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
77 lines (55 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
70
71
72
73
74
75
76
77
PACKAGE ?= partisan
VERSION ?= $(shell git describe --tags)
BASE_DIR = $(shell pwd)
ERLANG_BIN = $(shell dirname $(shell which erl))
REBAR = $(shell pwd)/rebar3
MAKE = make
CONCURRENCY ?= 4
LATENCY ?= 0
SIZE ?= 1024
.PHONY: rel deps test plots
all: compile
##
## Compilation targets
##
compile:
$(REBAR) compile
clean: packageclean
$(REBAR) clean
packageclean:
rm -fr *.deb
rm -fr *.tar.gz
##
## Test targets
##
perf:
pkill -9 beam.smp; pkill -9 epmd; SIZE=${SIZE} LATENCY=${LATENCY} CONCURRENCY=${CONCURRENCY} ${REBAR} ct --readable=false -v --suite=partisan_SUITE --case=performance_test --group=with_disterl
pkill -9 beam.smp; pkill -9 epmd; SIZE=${SIZE} LATENCY=${LATENCY} CONCURRENCY=${CONCURRENCY} ${REBAR} ct --readable=false -v --suite=partisan_SUITE --case=performance_test --group=default
pkill -9 beam.smp; pkill -9 epmd; SIZE=${SIZE} LATENCY=${LATENCY} CONCURRENCY=${CONCURRENCY} PARALLELISM=${CONCURRENCY} ${REBAR} ct --readable=false -v --suite=partisan_SUITE --case=performance_test --group=with_parallelism
kill:
pkill -9 beam.smp; pkill -9 epmd; exit 0
check: kill test xref dialyzer
test: ct eunit
lint:
${REBAR} as lint lint
eunit:
${REBAR} as test eunit
ct:
openssl rand -out test/partisan_SUITE_data/RAND 4096
${REBAR} ct
${REBAR} cover
shell:
${REBAR} shell --apps partisan
tail-logs:
tail -F priv/lager/*/log/*.log
logs:
cat priv/lager/*/log/*.log
##
## Release targets
##
rel:
${REBAR} release
stage:
${REBAR} release -d
DIALYZER_APPS = kernel stdlib erts sasl eunit syntax_tools compiler crypto
include tools.mk