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