Show More
@@ -1,35 +1,44 b'' | |||||
1 | #!/bin/sh |
|
|||
2 |
|
||||
3 | "$TESTDIR/hghave" inotify || exit 80 |
|
|||
4 |
|
1 | |||
5 | hg init |
|
2 | $ "$TESTDIR/hghave" inotify || exit 80 | |
|
3 | $ hg init | |||
|
4 | $ touch a b c d e f | |||
|
5 | $ echo "[extensions]" >> $HGRCPATH | |||
|
6 | $ echo "inotify=" >> $HGRCPATH | |||
6 |
|
7 | |||
7 | touch a b c d e f |
|
8 | inserve | |
8 |
|
9 | |||
9 | echo "[extensions]" >> $HGRCPATH |
|
10 | $ hg inserve -d --pid-file=hg.pid 2>&1 | |
10 | echo "inotify=" >> $HGRCPATH |
|
11 | $ cat hg.pid >> "$DAEMON_PIDS" | |
11 | echo inserv1 |
|
12 | $ hg ci -Am m | |
|
13 | adding a | |||
|
14 | adding b | |||
|
15 | adding c | |||
|
16 | adding d | |||
|
17 | adding e | |||
|
18 | adding f | |||
|
19 | adding hg.pid | |||
12 |
|
20 | |||
13 | echo % inserve |
|
21 | let the daemon finish its stuff | |
14 | hg inserve -d --pid-file=hg.pid 2>&1 |
|
|||
15 | cat hg.pid >> "$DAEMON_PIDS" |
|
|||
16 |
|
||||
17 | hg ci -Am m |
|
|||
18 |
|
22 | |||
|
23 | $ sleep 1 | |||
19 |
|
24 | |||
20 | # let the daemon finish its stuff |
|
25 | eed to test all file opperations | |
21 | sleep 1 |
|
|||
22 |
|
26 | |||
23 | #Need to test all file opperations |
|
27 | $ hg rm a | |
24 | hg rm a |
|
28 | $ rm b | |
25 | rm b |
|
29 | $ echo c >> c | |
26 | echo c >> c |
|
30 | $ touch g | |
27 | touch g |
|
31 | $ hg add g | |
28 | hg add g |
|
32 | $ hg mv e h | |
29 | hg mv e h |
|
33 | $ hg status | |
30 | hg status |
|
34 | M c | |
|
35 | A g | |||
|
36 | A h | |||
|
37 | R a | |||
|
38 | R e | |||
|
39 | ! b | |||
|
40 | $ sleep 1 | |||
31 |
|
41 | |||
32 | sleep 1 |
|
42 | 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" |
|
|||
34 | kill `cat hg.pid` |
|
|||
35 |
|
43 | |||
|
44 | $ kill `cat hg.pid` |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
General Comments 0
You need to be logged in to leave comments.
Login now