-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathMakefile
65 lines (50 loc) · 1.7 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
NUM_VALS = 3
install-deps:
@bash ./scripts/deps/prereq.sh
lint: install-deps
PYTHONPATH=./internal pylint ./internal
setup-chain: install-deps stop-chain
@bash ./scripts/chain/start_chain.sh 2
@echo "Waiting for chain to start..."
@sleep 7
pause-chain:
@bash ./scripts/chain/pause_nodes.sh
resume-chain:
@bash ./scripts/chain/resume_nodes.sh
stop-chain:
@bash ./scripts/chain/shutdown_nodes.sh
test-all: setup-chain
@bash ./scripts/chain/node_status.sh
@bash ./scripts/chain/pause_nodes.sh
@bash ./scripts/chain/resume_nodes.sh
@echo "Waiting for chain to resume..."
@sleep 7
TEST_TYPE=multi-msg-load bash ./scripts/tests/multi_msg_load.sh
TEST_TYPE=query-load bash ./scripts/tests/query_load.sh
TEST_TYPE=send-load bash ./scripts/tests/send_load.sh
TEST_TYPE=single-msg-load bash ./scripts/tests/single_msg_load.sh
$(MAKE) stop-chain
test-all-modules: setup-chain
@echo "Running all individual module tests..."
TEST_TYPE=module bash ./scripts/tests/all_modules.sh
$(MAKE) stop-chain
test-multi-msg: setup-chain
@echo "Running multi msg load test..."
TEST_TYPE=multi-msg-load bash ./scripts/tests/multi_msg_load.sh
$(MAKE) stop-chain
test-query-load: setup-chain
@echo "Running query load test..."
TEST_TYPE=query-load bash ./scripts/tests/query_load.sh
$(MAKE) stop-chain
test-send-load: setup-chain
@echo "Running send msg load test..."
TEST_TYPE=send-load bash ./scripts/tests/send_load.sh
$(MAKE) stop-chain
test-single-msg: setup-chain
@echo "Running single msg load test..."
TEST_TYPE=single-msg-load bash ./scripts/tests/single_msg_load.sh
$(MAKE) stop-chain
test-upgrade: setup-chain
@echo "Running upgrade test..."
bash ./scripts/tests/test_upgrade.sh $(NUM_VALS)
$(MAKE) stop-chain