author | Matt Mackall <mpm@selenic.com> |
Fri, 28 May 2010 14:41:11 -0500 | |
branch | stable |
changeset 11227 | 054549ccb680 |
parent 8601 | 021de2d12355 |
permissions | -rwxr-xr-x |
8601
021de2d12355
inotify: adding test for issue1556
Dmitriy Kostunin <dmitriy.kostunin@gmail.com>
parents:
diff
changeset
|
1 |
#!/bin/sh |
021de2d12355
inotify: adding test for issue1556
Dmitriy Kostunin <dmitriy.kostunin@gmail.com>
parents:
diff
changeset
|
2 |
|
021de2d12355
inotify: adding test for issue1556
Dmitriy Kostunin <dmitriy.kostunin@gmail.com>
parents:
diff
changeset
|
3 |
"$TESTDIR/hghave" inotify || exit 80 |
021de2d12355
inotify: adding test for issue1556
Dmitriy Kostunin <dmitriy.kostunin@gmail.com>
parents:
diff
changeset
|
4 |
|
021de2d12355
inotify: adding test for issue1556
Dmitriy Kostunin <dmitriy.kostunin@gmail.com>
parents:
diff
changeset
|
5 |
hg init |
021de2d12355
inotify: adding test for issue1556
Dmitriy Kostunin <dmitriy.kostunin@gmail.com>
parents:
diff
changeset
|
6 |
|
021de2d12355
inotify: adding test for issue1556
Dmitriy Kostunin <dmitriy.kostunin@gmail.com>
parents:
diff
changeset
|
7 |
touch a b |
021de2d12355
inotify: adding test for issue1556
Dmitriy Kostunin <dmitriy.kostunin@gmail.com>
parents:
diff
changeset
|
8 |
hg add a b |
021de2d12355
inotify: adding test for issue1556
Dmitriy Kostunin <dmitriy.kostunin@gmail.com>
parents:
diff
changeset
|
9 |
rm b |
021de2d12355
inotify: adding test for issue1556
Dmitriy Kostunin <dmitriy.kostunin@gmail.com>
parents:
diff
changeset
|
10 |
|
021de2d12355
inotify: adding test for issue1556
Dmitriy Kostunin <dmitriy.kostunin@gmail.com>
parents:
diff
changeset
|
11 |
echo % status without inotify |
021de2d12355
inotify: adding test for issue1556
Dmitriy Kostunin <dmitriy.kostunin@gmail.com>
parents:
diff
changeset
|
12 |
hg st |
021de2d12355
inotify: adding test for issue1556
Dmitriy Kostunin <dmitriy.kostunin@gmail.com>
parents:
diff
changeset
|
13 |
|
021de2d12355
inotify: adding test for issue1556
Dmitriy Kostunin <dmitriy.kostunin@gmail.com>
parents:
diff
changeset
|
14 |
echo "[extensions]" >> $HGRCPATH |
021de2d12355
inotify: adding test for issue1556
Dmitriy Kostunin <dmitriy.kostunin@gmail.com>
parents:
diff
changeset
|
15 |
echo "inotify=" >> $HGRCPATH |
021de2d12355
inotify: adding test for issue1556
Dmitriy Kostunin <dmitriy.kostunin@gmail.com>
parents:
diff
changeset
|
16 |
|
021de2d12355
inotify: adding test for issue1556
Dmitriy Kostunin <dmitriy.kostunin@gmail.com>
parents:
diff
changeset
|
17 |
echo % inserve |
021de2d12355
inotify: adding test for issue1556
Dmitriy Kostunin <dmitriy.kostunin@gmail.com>
parents:
diff
changeset
|
18 |
hg inserve -d --pid-file=hg.pid 2>&1 |
021de2d12355
inotify: adding test for issue1556
Dmitriy Kostunin <dmitriy.kostunin@gmail.com>
parents:
diff
changeset
|
19 |
cat hg.pid >> "$DAEMON_PIDS" |
021de2d12355
inotify: adding test for issue1556
Dmitriy Kostunin <dmitriy.kostunin@gmail.com>
parents:
diff
changeset
|
20 |
|
021de2d12355
inotify: adding test for issue1556
Dmitriy Kostunin <dmitriy.kostunin@gmail.com>
parents:
diff
changeset
|
21 |
echo % status |
021de2d12355
inotify: adding test for issue1556
Dmitriy Kostunin <dmitriy.kostunin@gmail.com>
parents:
diff
changeset
|
22 |
hg st |
021de2d12355
inotify: adding test for issue1556
Dmitriy Kostunin <dmitriy.kostunin@gmail.com>
parents:
diff
changeset
|
23 |
|
021de2d12355
inotify: adding test for issue1556
Dmitriy Kostunin <dmitriy.kostunin@gmail.com>
parents:
diff
changeset
|
24 |
sleep 1 |
021de2d12355
inotify: adding test for issue1556
Dmitriy Kostunin <dmitriy.kostunin@gmail.com>
parents:
diff
changeset
|
25 |
echo "Are we able to kill the service? if not, the service died on some error" |
021de2d12355
inotify: adding test for issue1556
Dmitriy Kostunin <dmitriy.kostunin@gmail.com>
parents:
diff
changeset
|
26 |
kill `cat hg.pid` |
021de2d12355
inotify: adding test for issue1556
Dmitriy Kostunin <dmitriy.kostunin@gmail.com>
parents:
diff
changeset
|
27 |