Skip to content
Snippets Groups Projects
Commit 9965b90c authored by Matt Mackall's avatar Matt Mackall
Browse files

tests: unify test-inotify-issue1371

parent b98d9314
No related branches found
No related tags found
No related merge requests found
inserv1
% inserve
adding a
adding b
adding c
adding d
adding e
adding f
adding hg.pid
M c
A g
A h
R a
R e
! b
Are we able to kill the service? if not, the service died on some error
#!/bin/sh
"$TESTDIR/hghave" inotify || exit 80
......@@ -4,3 +1,7 @@
hg init
$ "$TESTDIR/hghave" inotify || exit 80
$ hg init
$ touch a b c d e f
$ echo "[extensions]" >> $HGRCPATH
$ echo "inotify=" >> $HGRCPATH
......@@ -6,3 +7,3 @@
touch a b c d e f
inserve
......@@ -8,5 +9,12 @@
echo "[extensions]" >> $HGRCPATH
echo "inotify=" >> $HGRCPATH
echo inserv1
$ hg inserve -d --pid-file=hg.pid 2>&1
$ cat hg.pid >> "$DAEMON_PIDS"
$ hg ci -Am m
adding a
adding b
adding c
adding d
adding e
adding f
adding hg.pid
......@@ -12,7 +20,3 @@
echo % inserve
hg inserve -d --pid-file=hg.pid 2>&1
cat hg.pid >> "$DAEMON_PIDS"
hg ci -Am m
let the daemon finish its stuff
......@@ -18,2 +22,3 @@
$ sleep 1
......@@ -19,4 +24,3 @@
# let the daemon finish its stuff
sleep 1
eed to test all file opperations
......@@ -22,10 +26,16 @@
#Need to test all file opperations
hg rm a
rm b
echo c >> c
touch g
hg add g
hg mv e h
hg status
$ hg rm a
$ rm b
$ echo c >> c
$ touch g
$ hg add g
$ hg mv e h
$ hg status
M c
A g
A h
R a
R e
! b
$ sleep 1
......@@ -31,5 +41,3 @@
sleep 1
echo "Are we able to kill the service? if not, the service died on some error"
kill `cat hg.pid`
Are we able to kill the service? if not, the service died on some error
......@@ -35,1 +43,2 @@
$ kill `cat hg.pid`
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment