##// END OF EJS Templates
tests: unify test-inotify-debuginotify
Matt Mackall -
r12451:17ebf11b default
parent child Browse files
Show More
@@ -1,32 +1,41 b''
1 #!/bin/sh
2
1
3 "$TESTDIR/hghave" inotify || exit 80
2 $ "$TESTDIR/hghave" inotify || exit 80
3 $ hg init
4 $ echo "[extensions]" >> $HGRCPATH
5 $ echo "inotify=" >> $HGRCPATH
4
6
5 hg init
7 inserve
6
8
7 echo "[extensions]" >> $HGRCPATH
9 $ hg inserve -d --pid-file=hg.pid
8 echo "inotify=" >> $HGRCPATH
10 $ cat hg.pid >> "$DAEMON_PIDS"
9
11
10 echo % inserve
12 let the daemon finish its stuff
11 hg inserve -d --pid-file=hg.pid
12 cat hg.pid >> "$DAEMON_PIDS"
13
13
14 # let the daemon finish its stuff
14 $ sleep 1
15 sleep 1
15
16 empty
16
17
17 echo % empty
18 $ hg debuginotify
18 hg debuginotify
19 directories being watched:
20 /
21 .hg/
22 $ mkdir a
23 $ sleep 1
19
24
20 mkdir a
25 only 'a
21 sleep 1
22
26
23 echo % only 'a'
27 $ hg debuginotify
24 hg debuginotify
28 directories being watched:
29 /
30 .hg/
31 a/
32 $ rmdir a
33 $ sleep 1
25
34
26 rmdir a
35 empty again
27 sleep 1
28
36
29 echo % empty again
37 $ hg debuginotify
30 hg debuginotify
38 directories being watched:
31
39 /
32 kill `cat hg.pid`
40 .hg/
41 $ 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