-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
173 lines (127 loc) · 3.83 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
# Makefile for Dionex Funkload Tests
.PHONY: clean all start stop restart status
.PHONY: test credential_test bench credential_bench
.PHONY: start_monitor stop_monitor restart_monitor
.PHONY: start_credential stop_credential restart_credential
CREDCTL := bin/fl-credential-ctl credentials.conf
MONCTL := bin/fl-monitor-ctl monitor.conf
MONCTL_CARVING := bin/fl-monitor-ctl monitor-carving.conf
MONCTL_CHOPPING := bin/fl-monitor-ctl monitor-chopping.conf
MONCTL_PARING := bin/fl-monitor-ctl monitor-paring.conf
MONCTL_BOWIE := bin/fl-monitor-ctl monitor-bowie.conf
MONCTL_WAKIZASHI := bin/fl-monitor-ctl monitor-wakizashi.conf
MONCTL_FRONTEND1 := bin/fl-monitor-ctl monitor-frontend1.conf
MONCTL_FRONTEND2 := bin/fl-monitor-ctl monitor-frontend2.conf
MONCTL_FRONTEND3 := bin/fl-monitor-ctl monitor-frontend3.conf
MONCTL_FRONTEND4 := bin/fl-monitor-ctl monitor-frontend4.conf
MONCTL_BALLPOINT := bin/fl-monitor-ctl monitor-ballpoint.conf
ifdef URL
# FunkLoad options
FLOPS = -u $(URL)
else
FLOPS = --accept-invalid-links -vv
endif
all: test
mklogs:
mkdir -p logs
# testing
qa_test: mklogs
bin/fl-run-test test_QA.py --simple-fetch -vd $(FLOPS)
qa_test_auth: mklogs
bin/fl-run-test test_QAauth.py -vd $(FLOPS)
qa_test_full: mklogs
bin/fl-run-test test_QAfull.py -vd $(FLOPS)
prod_test: mklogs
bin/fl-run-test test_Prod.py -vd $(FLOPS)
student_test: mklogs
bin/fl-run-test test_Students.py -vd $(FLOPS)
# benching
qa_bench: mklogs
#$(MONCTL) restart
-bin/fl-run-bench --accept-invalid-links test_QA.py QA.test_loads
#-bin/fl-build-report --html -o reports logs/qa-bench.xml
#$(MONCTL) stop
qa_bench_auth: mklogs
#$(MONCTL) restart
-bin/fl-run-bench --accept-invalid-links test_QAauth.py QAauth.test_loads
-bin/fl-build-report --html -o reports logs/qa-bench.xml
#$(MONCTL) stop
qa_bench_full: mklogs
#$(MONCTL) restart
-bin/fl-run-bench --accept-invalid-links -D 5400 test_QAfull.py QA.test_loads
#-bin/fl-build-report --html -o reports logs/qa-bench.xml
#$(MONCTL) stop
prod_bench: mklogs
#$(MONCTL) restart
-bin/fl-run-bench --accept-invalid-links test_Prod.py Prod.test_loads
-bin/fl-build-report --html -o reports logs/prod-bench.xml
#$(MONCTL) stop
student_bench: mklogs
#$(MONCTL) restart
-bin/fl-run-bench --accept-invalid-links test_Students.py Students.test_loads
-bin/fl-build-report --html -o reports logs/student-bench.xml
#$(MONCTL) stop
# monitor ctl
start_monitor:
$(MONCTL) start
stop_monitor:
-$(MONCTL) stop
start_monitor_carving:
$(MONCTL_CARVING) start
stop_monitor_carving:
-$(MONCTL_CARVING) stop
start_monitor_chopping:
$(MONCTL_CHOPPING) start
stop_monitor_chopping:
-$(MONCTL_CHOPPING) stop
start_monitor_paring:
$(MONCTL_PARING) start
stop_monitor_paring:
-$(MONCTL_PARING) stop
start_monitor_bowie:
$(MONCTL_BOWIE) start
stop_monitor_bowie:
-$(MONCTL_BOWIE) stop
start_monitor_wakizashi:
$(MONCTL_WAKIZASHI) start
stop_monitor_wakizashi:
-$(MONCTL_WAKIZASHI) stop
start_monitor_frontend1:
$(MONCTL_FRONTEND1) start
stop_monitor_frontend1:
-$(MONCTL_FRONTEND1) stop
start_monitor_frontend2:
$(MONCTL_FRONTEND2) start
stop_monitor_frontend2:
-$(MONCTL_FRONTEND2) stop
start_monitor_frontend3:
$(MONCTL_FRONTEND3) start
stop_monitor_frontend3:
-$(MONCTL_FRONTEND3) stop
start_monitor_frontend4:
$(MONCTL_FRONTEND4) start
stop_monitor_frontend4:
-$(MONCTL_FRONTEND4) stop
start_monitor_ballpoint:
$(MONCTL_BALLPOINT) start
stop_monitor_ballpoint:
-$(MONCTL_BALLPOINT) stop
# credential ctl
start_credential:
$(CREDCTL) start
stop_credential:
-$(CREDCTL) stop
restart_credential:
$(CREDCTL) restart
# misc
status:
$(MONCTL) status;
$(CREDCTL) status;
stop: stop_monitor stop_credential
start: start_monitor start_credential
restart: restart_monitor restart_credential
buildout:
python ./bootstrap.py -d -v 1.4.4
./bin/buildout
clean:
-find . "(" -name "*~" -or -name ".#*" ")" -print0 | xargs -0 rm -f