##// END OF EJS Templates
Make test-verify SUSv3 compatible....
Will Maier -
r8720:da1b9358 default
parent child Browse files
Show More
@@ -1,45 +1,45 b''
1 #!/bin/sh
1 #!/bin/sh
2
2
3 echo % prepare repo
3 echo % prepare repo
4 hg init a
4 hg init a
5 cd a
5 cd a
6 echo "some text" > FOO.txt
6 echo "some text" > FOO.txt
7 echo "another text" > bar.txt
7 echo "another text" > bar.txt
8 echo "more text" > QUICK.txt
8 echo "more text" > QUICK.txt
9 hg add
9 hg add
10 hg ci -mtest1
10 hg ci -mtest1
11
11
12 echo
12 echo
13 echo % verify
13 echo % verify
14 hg verify
14 hg verify
15
15
16 echo
16 echo
17 echo % introduce some bugs in repo
17 echo % introduce some bugs in repo
18 cd .hg/store/data
18 cd .hg/store/data
19 mv _f_o_o.txt.i X_f_o_o.txt.i
19 mv _f_o_o.txt.i X_f_o_o.txt.i
20 mv bar.txt.i xbar.txt.i
20 mv bar.txt.i xbar.txt.i
21 rm _q_u_i_c_k.txt.i
21 rm _q_u_i_c_k.txt.i
22
22
23 echo
23 echo
24 echo % verify
24 echo % verify
25 hg verify
25 hg verify
26
26
27 cd ..
27 cd ..
28
28
29 echo % test revlog corruption
29 echo % test revlog corruption
30 hg init b
30 hg init b
31 cd b
31 cd b
32
32
33 touch a
33 touch a
34 hg add a
34 hg add a
35 hg ci -m a
35 hg ci -m a
36
36
37 echo 'corrupted' > b
37 echo 'corrupted' > b
38 head -c 20 .hg/store/data/a.i > start
38 dd if=.hg/store/data/a.i of=start bs=1 count=20 2>/dev/null
39 cat start b > .hg/store/data/a.i
39 cat start b > .hg/store/data/a.i
40
40
41 echo
41 echo
42 echo % verify
42 echo % verify
43 hg verify
43 hg verify
44
44
45 exit 0
45 exit 0
General Comments 0
You need to be logged in to leave comments. Login now