-
Notifications
You must be signed in to change notification settings - Fork 0
/
step2.sh
executable file
·269 lines (266 loc) · 6.48 KB
/
step2.sh
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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
#!/bin/sh
. ./step1.sh > /dev/null
NEW_DIR=new
OLD_DIR=old
pushd ${HANDLER_DIR}
for testsuite in `cat ${HANDLER_DIR}/.list`
do
pushd ${testsuite}
if [ $? -ne 0 ]; then
echo ${testsuite}
exit 348
fi
mkdir -pv ${NEW_DIR} ${OLD_DIR}
pushd ${NEW_DIR}
case $testsuite in
pgbench_small_ext3)
${ROOT_DIR}/pgbench_disp.sh ${testsuite}
if [ $? -eq 0 ]; then
${ROOT_DIR}/pgbench_fetch_old_result.sh ${testsuite} ${OLD_LOGS_DIR}
else
echo "${testsuite} testing fail"
exit 1
fi
${ROOT_DIR}/pgbench_data_comparing.sh ${NEW_DIR}
;;
pgbench_small_xfs)
${ROOT_DIR}/pgbench_disp.sh ${testsuite}
if [ $? -eq 0 ]; then
${ROOT_DIR}/pgbench_fetch_old_result.sh ${testsuite} ${OLD_LOGS_DIR}
else
echo "${testsuite} testing fail"
exit 1
fi
${ROOT_DIR}/pgbench_data_comparing.sh ${NEW_DIR}
;;
bonniepp_ext3)
${ROOT_DIR}/bonniepp_disp.sh ${testsuite}
if [ $? -eq 0 ]; then
${ROOT_DIR}/bonniepp_fetch_old_result.sh ${testsuite} ${OLD_LOGS_DIR}
else
echo "${testsuite} testing fail"
exit 1
fi
${ROOT_DIR}/bonniepp_data_comparing.sh ${NEW_DIR}
;;
bonniepp_fsync_ext3)
${ROOT_DIR}/bonniepp_disp.sh ${testsuite}
if [ $? -eq 0 ]; then
${ROOT_DIR}/bonniepp_fetch_old_result.sh ${testsuite} ${OLD_LOGS_DIR}
else
echo "${testsuite} testing fail"
exit 1
fi
${ROOT_DIR}/bonniepp_data_comparing.sh ${NEW_DIR}
;;
bonniepp_xfs)
${ROOT_DIR}/bonniepp_disp.sh ${testsuite}
if [ $? -eq 0 ]; then
${ROOT_DIR}/bonniepp_fetch_old_result.sh ${testsuite} ${OLD_LOGS_DIR}
else
echo "${testsuite} testing fail"
exit 1
fi
${ROOT_DIR}/bonniepp_data_comparing.sh ${NEW_DIR}
;;
bonniepp_fsync_xfs)
${ROOT_DIR}/bonniepp_disp.sh ${testsuite}
if [ $? -eq 0 ]; then
${ROOT_DIR}/bonniepp_fetch_old_result.sh ${testsuite} ${OLD_LOGS_DIR}
else
echo "${testsuite} testing fail"
exit 1
fi
${ROOT_DIR}/bonniepp_data_comparing.sh ${NEW_DIR}
;;
dbench4_ext3)
${ROOT_DIR}/dbench_disp.sh dbench4_ext3
if [ $? -eq 0 ]; then
${ROOT_DIR}/dbench_fetch_old_result.sh ${OLD_DIR} dbench4_ext3
else
echo "dbench4_ext3 testing fail"
exit 1
fi
${ROOT_DIR}/dbench_data_comparing.sh ${NEW_DIR}
;;
dbench4_fsync_ext3)
${ROOT_DIR}/dbench_disp.sh dbench4_fsync_ext3
if [ $? -eq 0 ]; then
${ROOT_DIR}/dbench_fetch_old_result.sh ${OLD_DIR} dbench4_fsync_ext3
else
echo "dbench4_fsync_ext3 testing fail"
exit 1
fi
${ROOT_DIR}/dbench_data_comparing.sh ${NEW_DIR}
;;
dbench4_fsync_xfs)
${ROOT_DIR}/dbench_disp.sh dbench4_fsync_xfs
if [ $? -eq 0 ]; then
${ROOT_DIR}/dbench_fetch_old_result.sh ${OLD_DIR} dbench4_fsync_xfs
else
echo "dbench4_fsync_xfs testing fail"
exit 1
fi
${ROOT_DIR}/dbench_data_comparing.sh ${NEW_DIR}
;;
dbench4_xfs)
${ROOT_DIR}/dbench_disp.sh dbench4_xfs
if [ $? -eq 0 ]; then
${ROOT_DIR}/dbench_fetch_old_result.sh ${OLD_DIR} dbench4_xfs
else
echo "dbench4_xfs testing fail"
exit 1
fi
${ROOT_DIR}/dbench_data_comparing.sh ${NEW_DIR}
;;
tiobench_basic_ext3)
${ROOT_DIR}/tiobench_disp.sh tiobench_basic_ext3
if [ $? -eq 0 ]; then
${ROOT_DIR}/tiobench_fetch_old_result.sh $testsuite ${OLD_LOGS_DIR}
else
echo "tiobench_basic_ext3 testing fail"
exit 1
fi
${ROOT_DIR}/tiobench_data_comparing.sh ${NEW_DIR}
;;
tiobench_basic_xfs)
${ROOT_DIR}/tiobench_disp.sh tiobench_basic_xfs
if [ $? -eq 0 ]; then
${ROOT_DIR}/tiobench_fetch_old_result.sh ${testsuite} ${OLD_LOGS_DIR}
else
echo "tiobench_basic_xfs testing fail"
exit 1
fi
${ROOT_DIR}/tiobench_data_comparing.sh ${NEW_DIR}
;;
iozone_bigmem_basic_ext3)
${ROOT_DIR}/iozone_disp.sh iozone_bigmem_basic_ext3
if [ $? -eq 0 ]; then
${ROOT_DIR}/iozone_fetch_old_result.sh ${NEW_DIR}
else
echo "iozone_bigmem_basic_ext3 testing fail"
exit 1
fi
${ROOT_DIR}/iozone_data_comparing.sh ${NEW_DIR}
;;
iozone_bigmem_basic_xfs)
${ROOT_DIR}/iozone_disp.sh iozone_bigmem_basic_xfs
if [ $? -eq 0 ]; then
${ROOT_DIR}/iozone_fetch_old_result.sh ${NEW_DIR}
else
echo "iozone_bigmem_basic_xfs testing fail"
exit 1
fi
${ROOT_DIR}/iozone_data_comparing.sh ${NEW_DIR}
;;
kernbench)
${ROOT_DIR}/kernbench_disp.sh kernbench
if [ $? -eq 0 ]; then
${ROOT_DIR}/kernbench_fetch_old_result.sh ${NEW_DIR}
else
echo "kernbench testing fail"
exit 1
fi
${ROOT_DIR}/kernbench_data_comparing.sh ${NEW_DIR}
;;
libmicro_bench)
${ROOT_DIR}/libmicro_bench.sh libmicro_bench
if [ $? -eq 0 ]; then
${ROOT_DIR}/libmicro_bench_fetch_old_result.sh ${NEW_DIR}
else
echo "libmicro_bench testing fail"
exit 1
fi
${ROOT_DIR}/libmicro_bench_data_comparing.sh ${NEW_DIR}
;;
lmbench_bench)
${ROOT_DIR}/lmbench_bench.sh lmbench_bench
if [ $? -eq 0 ]; then
${ROOT_DIR}/lmbench_fetch_old_result.sh ${NEW_DIR}
else
echo "lmbench testing fail"
exit 1
fi
${ROOT_DIR}/lmbench_data_comparing.sh ${NEW_DIR}
;;
netperf_loop4)
${ROOT_DIR}/netperf.sh netperf_loop4
if [ $? -eq 0 ]; then
${ROOT_DIR}/netperf_fetch_old_result.sh ${NEW_DIR}
else
echo "netperf.sh testing fail"
exit 1
fi
${ROOT_DIR}/netperf_data_comparing.sh ${NEW_DIR}
;;
netperf_loop6)
${ROOT_DIR}/netperf.sh netperf_loop6
if [ $? -eq 0 ]; then
${ROOT_DIR}/netperf_fetch_old_result.sh ${NEW_DIR}
else
echo "netperf.sh testing fail"
exit 1
fi
${ROOT_DIR}/netperf_data_comparing.sh ${NEW_DIR}
;;
reaim_ioperf_ext3)
${ROOT_DIR}/reaim_ioperf_disp.sh reaim_ioperf_ext3
if [ $? -eq 0 ]; then
${ROOT_DIR}/reaim_ioperf_fetch_old_result.sh ${NEW_DIR}
else
echo "reaim_ioperf_disp.sh testing fail"
exit 1
fi
${ROOT_DIR}/reaim_ioperf_comparing.sh ${NEW_DIR}
;;
reaim_ioperf_xfs)
${ROOT_DIR}/reaim_ioperf_disp.sh reaim_ioperf_xfs
if [ $? -eq 0 ]; then
${ROOT_DIR}/reaim_ioperf_fetch_old_result.sh ${NEW_DIR}
else
echo "iozone_bigmem_basic_xfs testing fail"
exit 1
fi
${ROOT_DIR}/reaim_ioperf_comparing.sh ${NEW_DIR}
;;
siege)
${ROOT_DIR}/siege.sh siege
if [ $? -eq 0 ]; then
${ROOT_DIR}/siege_fetch_old_result.sh ${NEW_DIR}
else
echo "siege testing fail"
exit 1
fi
${ROOT_DIR}/siege_data_comparing.sh ${NEW_DIR}
;;
sysbench_oltp_ext3)
${ROOT_DIR}/sysbench.sh sysbench_oltp_ext3
if [ $? -eq 0 ]; then
${ROOT_DIR}/sysbench_fetch_old_result.sh ${NEW_DIR}
else
echo "sysbench testing fail"
exit 1
fi
${ROOT_DIR}/sysbench_data_comparing.sh ${NEW_DIR}
;;
sysbench_oltp_xfs)
${ROOT_DIR}/sysbench.sh sysbench_oltp_xfs
if [ $? -eq 0 ]; then
${ROOT_DIR}/sysbench_fetch_old_result.sh ${NEW_DIR}
else
echo "sysbench testing fail"
exit 1
fi
${ROOT_DIR}/sysbench_data_comparing.sh ${NEW_DIR}
;;
*)
echo 'Please review code.'
echo 'Maybe some new testsuite log package be download to logs_bz2'
echo ${testsuite}
exit 1
;;
esac
popd
popd
done
popd