3
# Execute some simple basic test on MyISAM libary to check if things
6
valgrind="valgrind --alignment=8 --leak-check=yes"
9
if test -f mi_test1$MACH ; then suffix=$MACH ; else suffix=""; fi
10
./mi_test1$suffix $silent
11
./myisamchk$suffix -se test1
12
./mi_test1$suffix $silent -N -S
13
./myisamchk$suffix -se test1
14
./mi_test1$suffix $silent -P --checksum
15
./myisamchk$suffix -se test1
16
./mi_test1$suffix $silent -P -N -S
17
./myisamchk$suffix -se test1
18
./mi_test1$suffix $silent -B -N -R2
19
./myisamchk$suffix -sm test1
20
./mi_test1$suffix $silent -a -k 480 --unique
21
./myisamchk$suffix -sm test1
22
./mi_test1$suffix $silent -a -N -S -R1
23
./myisamchk$suffix -sm test1
24
./mi_test1$suffix $silent -p -S
25
./myisamchk$suffix -sm test1
26
./mi_test1$suffix $silent -p -S -N --unique
27
./myisamchk$suffix -sm test1
28
./mi_test1$suffix $silent -p -S -N --key_length=127 --checksum
29
./myisamchk$suffix -sm test1
30
./mi_test1$suffix $silent -p -S -N --key_length=128
31
./myisamchk$suffix -sm test1
32
./mi_test1$suffix $silent -p -S --key_length=480
33
./myisamchk$suffix -sm test1
34
./mi_test1$suffix $silent -a -B
35
./myisamchk$suffix -sm test1
36
./mi_test1$suffix $silent -a -B --key_length=64 --unique
37
./myisamchk$suffix -sm test1
38
./mi_test1$suffix $silent -a -B -k 480 --checksum
39
./myisamchk$suffix -sm test1
40
./mi_test1$suffix $silent -a -B -k 480 -N --unique --checksum
41
./myisamchk$suffix -sm test1
42
./mi_test1$suffix $silent -a -m
43
./myisamchk$suffix -sm test1
44
./mi_test1$suffix $silent -a -m -P --unique --checksum
45
./myisamchk$suffix -sm test1
46
./mi_test1$suffix $silent -a -m -P --key_length=480 --key_cache
47
./myisamchk$suffix -sm test1
48
./mi_test1$suffix $silent -m -p
49
./myisamchk$suffix -sm test1
50
./mi_test1$suffix $silent -w -S --unique
51
./myisamchk$suffix -sm test1
52
./mi_test1$suffix $silent -a -w --key_length=64 --checksum
53
./myisamchk$suffix -sm test1
54
./mi_test1$suffix $silent -a -w -N --key_length=480
55
./myisamchk$suffix -sm test1
56
./mi_test1$suffix $silent -a -w -S --key_length=480 --checksum
57
./myisamchk$suffix -sm test1
58
./mi_test1$suffix $silent -a -b -N
59
./myisamchk$suffix -sm test1
60
./mi_test1$suffix $silent -a -b --key_length=480
61
./myisamchk$suffix -sm test1
62
./mi_test1$suffix $silent -p -B --key_length=480
63
./myisamchk$suffix -sm test1
65
./mi_test1$suffix $silent --checksum
66
./myisamchk$suffix -se test1
67
./myisamchk$suffix -rs test1
68
./myisamchk$suffix -se test1
69
./myisamchk$suffix -rqs test1
70
./myisamchk$suffix -se test1
71
./myisamchk$suffix -rs --correct-checksum test1
72
./myisamchk$suffix -se test1
73
./myisamchk$suffix -rqs --correct-checksum test1
74
./myisamchk$suffix -se test1
75
./myisamchk$suffix -ros --correct-checksum test1
76
./myisamchk$suffix -se test1
77
./myisamchk$suffix -rqos --correct-checksum test1
78
./myisamchk$suffix -se test1
80
# check of myisampack / myisamchk
81
./myisampack$suffix --force -s test1
82
# Ignore error for index file
83
./myisamchk$suffix -es test1 2>&1 >& /dev/null
84
./myisamchk$suffix -rqs test1
85
./myisamchk$suffix -es test1
86
./myisamchk$suffix -rs test1
87
./myisamchk$suffix -es test1
88
./myisamchk$suffix -rus test1
89
./myisamchk$suffix -es test1
91
./mi_test1$suffix $silent --checksum -S
92
./myisamchk$suffix -se test1
93
./myisamchk$suffix -ros test1
94
./myisamchk$suffix -rqs test1
95
./myisamchk$suffix -se test1
97
./myisampack$suffix --force -s test1
98
./myisamchk$suffix -rqs test1
99
./myisamchk$suffix -es test1
100
./myisamchk$suffix -rus test1
101
./myisamchk$suffix -es test1
103
./mi_test1$suffix $silent --checksum --unique
104
./myisamchk$suffix -se test1
105
./mi_test1$suffix $silent --unique -S
106
./myisamchk$suffix -se test1
109
./mi_test1$suffix $silent --key_multiple -N -S
110
./myisamchk$suffix -sm test1
111
./mi_test1$suffix $silent --key_multiple -a -p --key_length=480
112
./myisamchk$suffix -sm test1
113
./mi_test1$suffix $silent --key_multiple -a -B --key_length=480
114
./myisamchk$suffix -sm test1
115
./mi_test1$suffix $silent --key_multiple -P -S
116
./myisamchk$suffix -sm test1
118
./mi_test2$suffix $silent -L -K -W -P
119
./myisamchk$suffix -sm test2
120
./mi_test2$suffix $silent -L -K -W -P -A
121
./myisamchk$suffix -sm test2
122
./mi_test2$suffix $silent -L -K -W -P -S -R1 -m500
123
echo "mi_test2$suffix $silent -L -K -R1 -m2000 ; Should give error 135"
124
./myisamchk$suffix -sm test2
125
./mi_test2$suffix $silent -L -K -R1 -m2000
126
./myisamchk$suffix -sm test2
127
./mi_test2$suffix $silent -L -K -P -S -R3 -m50 -b1000000
128
./myisamchk$suffix -sm test2
129
./mi_test2$suffix $silent -L -B
130
./myisamchk$suffix -sm test2
131
./mi_test2$suffix $silent -D -B -c
132
./myisamchk$suffix -sm test2
133
./mi_test2$suffix $silent -m10000 -e8192 -K
134
./myisamchk$suffix -sm test2
135
./mi_test2$suffix $silent -m10000 -e16384 -E16384 -K -L
136
./myisamchk$suffix -sm test2
138
./mi_test2$suffix $silent -L -K -W -P -m50 -l
140
./mi_test2$suffix $silent -L -K -W -P -m50 -l -b100
142
time ./mi_test2$suffix $silent
143
time ./mi_test2$suffix $silent -K -B
144
time ./mi_test2$suffix $silent -L -B
145
time ./mi_test2$suffix $silent -L -K -B
146
time ./mi_test2$suffix $silent -L -K -W -B
147
time ./mi_test2$suffix $silent -L -K -W -S -B
148
time ./mi_test2$suffix $silent -D -K -W -S -B