Show More
@@ -1,36 +1,35 | |||||
1 | #!/bin/sh |
|
1 | #!/bin/sh | |
2 |
|
2 | |||
3 | "$TESTDIR/hghave" inotify || exit 80 |
|
3 | "$TESTDIR/hghave" inotify || exit 80 | |
4 |
|
4 | |||
5 | hg init |
|
5 | hg init | |
6 |
|
6 | |||
7 | touch a b c d e f |
|
7 | touch a b c d e f | |
8 |
|
8 | |||
9 | echo "[extensions]" >> $HGRCPATH |
|
9 | echo "[extensions]" >> $HGRCPATH | |
10 | echo "inotify=" >> $HGRCPATH |
|
10 | echo "inotify=" >> $HGRCPATH | |
11 | echo inserv1 |
|
11 | echo inserv1 | |
12 |
|
12 | |||
13 | echo % inserve |
|
13 | echo % inserve | |
14 | hg inserve -d --pid-file=hg.pid 2>&1 |
|
14 | hg inserve -d --pid-file=hg.pid 2>&1 | |
15 | cat hg.pid >> "$DAEMON_PIDS" |
|
15 | cat hg.pid >> "$DAEMON_PIDS" | |
16 |
|
16 | |||
17 | hg ci -Am m |
|
17 | hg ci -Am m | |
18 |
|
18 | |||
19 |
|
19 | |||
20 | # let the daemon finish its stuff |
|
20 | # let the daemon finish its stuff | |
21 | sleep 1 |
|
21 | sleep 1 | |
22 |
|
22 | |||
23 | #Need to test all file opperations |
|
23 | #Need to test all file opperations | |
24 | hg rm a |
|
24 | hg rm a | |
25 | rm b |
|
25 | rm b | |
26 | echo c >> c |
|
26 | echo c >> c | |
27 | touch g |
|
27 | touch g | |
28 | hg add g |
|
28 | hg add g | |
29 | hg mv e h |
|
29 | hg mv e h | |
30 | hg status |
|
30 | hg status | |
31 |
|
31 | |||
32 |
|
32 | sleep 1 | ||
33 | sleep 5 |
|
|||
34 | echo "Are we able to kill the service? if not, the service died on some error" |
|
33 | echo "Are we able to kill the service? if not, the service died on some error" | |
35 | kill `cat hg.pid` |
|
34 | kill `cat hg.pid` | |
36 |
|
35 |
General Comments 0
You need to be logged in to leave comments.
Login now