forked from Tencent/Tendis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
redistest.sh
77 lines (66 loc) · 3.12 KB
/
redistest.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
logfile=./redistest.log
rm $logfile
function runOne() {
tmplog=./redistest_tmp.log
rm $tmplog
cmd=$1
$cmd >> $tmplog 2>&1
cat $tmplog
cat $tmplog >> $logfile
errcnt=`grep -E "\[err|\[exception|49merr|49mexception" $logfile|wc -l`
if [ $errcnt -ne 0 ]; then
grep -E "\[err|\[exception|49merr|49mexception" $logfile
exit $errcnt
fi
}
runOne "tclsh tests/test_helper.tcl --single rr_unit/type/string"
runOne "tclsh tests/test_helper.tcl --single rr_unit/type/hash"
#tclsh tests/test_helper.tcl --single rr_unit/type/hscan
runOne "tclsh tests/test_helper.tcl --single rr_unit/type/list-2"
runOne "tclsh tests/test_helper.tcl --single rr_unit/type/list-3"
#tclsh tests/test_helper.tcl --single rr_unit/type/list-common
runOne "tclsh tests/test_helper.tcl --single rr_unit/type/list"
runOne "tclsh tests/test_helper.tcl --single rr_unit/type/set"
runOne "tclsh tests/test_helper.tcl --single rr_unit/type/zset"
runOne "tclsh tests/test_helper.tcl --single rr_unit/hyperloglog"
runOne "tclsh tests/test_helper.tcl --single rr_unit/expire"
runOne "tclsh tests/test_helper.tcl --single rr_unit/bitops"
runOne "tclsh tests/test_helper.tcl --single rr_unit/auth"
runOne "tclsh tests/test_helper.tcl --single rr_unit/basic"
runOne "tclsh tests/test_helper.tcl --single rr_unit/protocol"
runOne "tclsh tests/test_helper.tcl --single rr_unit/other"
runOne "tclsh tests/test_helper.tcl --single rr_unit/quit"
runOne "tclsh tests/test_helper.tcl --single rr_unit/sort"
runOne "tclsh tests/test_helper.tcl --single rr_unit/bugs"
runOne "tclsh tests/test_helper.tcl --single tendis_ssd_test/zscanbyscore"
runOne "tclsh tests/test_helper.tcl --single tendis_ssd_test/hmcas"
runOne "tclsh tests/test_helper.tcl --single tendis_ssd_test/cas"
runOne "tclsh tests/test_helper.tcl --single tendis_ssd_test/setnxex"
runOne "tclsh tests/test_helper.tcl --single tendis_ssd_test/bitfield"
runOne "tclsh tests/test_helper.tcl --single tendis_ssd_test/increx"
runOne "tclsh tests/cluster/run.tcl --single 08"
runOne "tclsh tests/cluster/run.tcl --single 10"
valgrind=0
#tests=(aofrw bitfield dump geo introspection-2 keyspace lazyfree maxmemory multi other protocol quit scripting sort wait auth bitops expire hyperloglog introspection latency-monitor limits memefficiency obuf-limits printver pubsub scan slowlog)
tests=(bitfield dump keyspace other protocol quit sort auth bitops expire hyperloglog limits scan slowlog)
length=${#tests[@]}
length=`expr $length - 1`
for i in `seq 0 $length`
do
if [ $valgrind -eq 1 ]; then
runOne "tclsh tests/test_helper.tcl --valgrind --single cluster_test/${tests[$i]}"
else
runOne "tclsh tests/test_helper.tcl --single cluster_test/${tests[$i]}"
fi
done
tests=(hash incr list-2 list-3 list set string zset)
length=${#tests[@]}
length=`expr $length - 1`
for i in `seq 0 $length`
do
if [ $valgrind -eq 1 ]; then
runOne "tclsh tests/test_helper.tcl --valgrind --single cluster_test/type/${tests[$i]}"
else
runOne "tclsh tests/test_helper.tcl --single cluster_test/type/${tests[$i]}"
fi
done