##// END OF EJS Templates
tests: unify test-inotify-issue1542
Matt Mackall -
r12455:92b2c876 default
parent child Browse files
Show More
@@ -1,32 +1,36
1 #!/bin/sh
2
3 "$TESTDIR/hghave" inotify || exit 80
4
5 hg init
6
1
7 touch a
2 $ "$TESTDIR/hghave" inotify || exit 80
8 mkdir dir
3 $ hg init
9 touch dir/b
4 $ touch a
10 touch dir/c
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
12 inserve
13 echo "inotify=" >> $HGRCPATH
14
15 hg add dir/c
16
13
17 echo % inserve
14 $ hg inserve -d --pid-file=hg.pid 2>&1
18 hg inserve -d --pid-file=hg.pid 2>&1
15 $ cat hg.pid >> "$DAEMON_PIDS"
19 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
26 status
24 mv dir ../tmp-test-inotify-issue1542
25
27
26 echo % status
28 $ hg st
27 hg st
29 ! dir/c
30 ? a
31 ? hg.pid
32 $ sleep 1
28
33
29 sleep 1
34 Are we able to kill the service? if not, the service died on some error
30 echo "Are we able to kill the service? if not, the service died on some error"
31 kill `cat hg.pid`
32
35
36 $ 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