Mercurial > hg > mercurial-source
changeset 12456:1f74b0d0f485
tests: unify test-inotify-issue1556
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sun, 26 Sep 2010 13:43:21 -0500 (2010-09-26) |
parents | 92b2c876a79d |
children | 5ae8711ea324 |
files | tests/test-inotify-issue1556 tests/test-inotify-issue1556.out tests/test-inotify-issue1556.t |
diffstat | 2 files changed, 23 insertions(+), 28 deletions(-) [+] |
line wrap: on
line diff
deleted file mode 100644 --- a/tests/test-inotify-issue1556.out +++ /dev/null @@ -1,9 +0,0 @@ -% status without inotify -A a -! b -% inserve -% status -A a -! b -? hg.pid -Are we able to kill the service? if not, the service died on some error
old mode 100755 new mode 100644 rename from tests/test-inotify-issue1556 rename to tests/test-inotify-issue1556.t --- a/tests/test-inotify-issue1556 +++ b/tests/test-inotify-issue1556.t @@ -1,27 +1,31 @@ -#!/bin/sh -"$TESTDIR/hghave" inotify || exit 80 - -hg init + $ "$TESTDIR/hghave" inotify || exit 80 + $ hg init + $ touch a b + $ hg add a b + $ rm b -touch a b -hg add a b -rm b +status without inotify -echo % status without inotify -hg st + $ hg st + A a + ! b + $ echo "[extensions]" >> $HGRCPATH + $ echo "inotify=" >> $HGRCPATH -echo "[extensions]" >> $HGRCPATH -echo "inotify=" >> $HGRCPATH +inserve -echo % inserve -hg inserve -d --pid-file=hg.pid 2>&1 -cat hg.pid >> "$DAEMON_PIDS" + $ hg inserve -d --pid-file=hg.pid 2>&1 + $ cat hg.pid >> "$DAEMON_PIDS" + +status -echo % status -hg st + $ hg st + A a + ! b + ? hg.pid + $ sleep 1 -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 + $ kill `cat hg.pid`