##// END OF EJS Templates
tests: unify test-inotify-issue1542
Matt Mackall -
r12455:92b2c876 default
parent child Browse files
Show More
@@ -1,32 +1,36 b''
1 #!/bin/sh
2
3 "$TESTDIR/hghave" inotify || exit 80
4
5 hg init
6 1
7 touch a
8 mkdir dir
9 touch dir/b
10 touch dir/c
2 $ "$TESTDIR/hghave" inotify || exit 80
3 $ hg init
4 $ touch a
5 $ mkdir dir
6 $ touch dir/b
7 $ touch dir/c
8 $ echo "[extensions]" >> $HGRCPATH
9 $ echo "inotify=" >> $HGRCPATH
10 $ hg add dir/c
11 11
12 echo "[extensions]" >> $HGRCPATH
13 echo "inotify=" >> $HGRCPATH
14
15 hg add dir/c
12 inserve
16 13
17 echo % inserve
18 hg inserve -d --pid-file=hg.pid 2>&1
19 cat hg.pid >> "$DAEMON_PIDS"
14 $ hg inserve -d --pid-file=hg.pid 2>&1
15 $ cat hg.pid >> "$DAEMON_PIDS"
16 $ hg st
17 A dir/c
18 ? a
19 ? dir/b
20 ? hg.pid
20 21
21 hg st
22 moving dir out
23
24 $ mv dir ../tmp-test-inotify-issue1542
22 25
23 echo % moving dir out
24 mv dir ../tmp-test-inotify-issue1542
26 status
25 27
26 echo % status
27 hg st
28 $ hg st
29 ! dir/c
30 ? a
31 ? hg.pid
32 $ sleep 1
28 33
29 sleep 1
30 echo "Are we able to kill the service? if not, the service died on some error"
31 kill `cat hg.pid`
34 Are we able to kill the service? if not, the service died on some error
32 35
36 $ kill `cat hg.pid`
1 NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now