Show More
@@ -1,44 +1,41 b'' | |||||
1 | $ check_code="$TESTDIR"/../contrib/check-code.py |
|
1 | $ check_code="$TESTDIR"/../contrib/check-code.py | |
2 | $ cd "$TESTDIR"/.. |
|
2 | $ cd "$TESTDIR"/.. | |
3 | $ if hg identify -q > /dev/null; then : |
|
3 | $ if hg identify -q > /dev/null; then : | |
4 | > else |
|
4 | > else | |
5 | > echo "skipped: not a Mercurial working dir" >&2 |
|
5 | > echo "skipped: not a Mercurial working dir" >&2 | |
6 | > exit 80 |
|
6 | > exit 80 | |
7 | > fi |
|
7 | > fi | |
8 |
|
8 | |||
9 | New errors are not allowed. Warnings are strongly discouraged. |
|
9 | New errors are not allowed. Warnings are strongly discouraged. | |
10 |
|
10 | |||
11 | $ hg manifest | xargs "$check_code" --warnings --nolineno --per-file=0 \ |
|
11 | $ hg manifest | xargs "$check_code" --warnings --nolineno --per-file=0 \ | |
12 | > || false |
|
12 | > || false | |
13 | tests/test-inotify-issue1371.t:0: |
|
|||
14 | > $ kill `cat hg.pid` |
|
|||
15 | don't use kill, use killdaemons.py |
|
|||
16 | tests/test-inotify-issue1542.t:0: |
|
13 | tests/test-inotify-issue1542.t:0: | |
17 | > $ kill `cat hg.pid` |
|
14 | > $ kill `cat hg.pid` | |
18 | don't use kill, use killdaemons.py |
|
15 | don't use kill, use killdaemons.py | |
19 | tests/test-inotify-issue1556.t:0: |
|
16 | tests/test-inotify-issue1556.t:0: | |
20 | > $ kill `cat hg.pid` |
|
17 | > $ kill `cat hg.pid` | |
21 |
|
|
18 | don't use kill, use killdaemons.py | |
22 | tests/test-inotify-lookup.t:0: |
|
19 | tests/test-inotify-lookup.t:0: | |
23 | > $ kill `cat .hg/inotify.pid` |
|
20 | > $ kill `cat .hg/inotify.pid` | |
24 | don't use kill, use killdaemons.py |
|
21 | don't use kill, use killdaemons.py | |
25 | tests/test-inotify.t:0: |
|
22 | tests/test-inotify.t:0: | |
26 | > $ kill `cat ../hg2.pid` |
|
23 | > $ kill `cat ../hg2.pid` | |
27 |
|
|
24 | don't use kill, use killdaemons.py | |
28 | tests/test-inotify.t:0: |
|
25 | tests/test-inotify.t:0: | |
29 | > $ kill `cat hg.pid` |
|
26 | > $ kill `cat hg.pid` | |
30 | don't use kill, use killdaemons.py |
|
27 | don't use kill, use killdaemons.py | |
31 | tests/test-inotify.t:0: |
|
28 | tests/test-inotify.t:0: | |
32 | > $ kill `cat hg3.pid` |
|
29 | > $ kill `cat hg3.pid` | |
33 |
|
|
30 | don't use kill, use killdaemons.py | |
34 | tests/test-obsolete.t:0: |
|
31 | tests/test-obsolete.t:0: | |
35 | > $ kill `cat hg.pid` |
|
32 | > $ kill `cat hg.pid` | |
36 | don't use kill, use killdaemons.py |
|
33 | don't use kill, use killdaemons.py | |
37 |
|
|
34 | don't use kill, use killdaemons.py | |
38 | tests/test-serve.t:0: |
|
35 | tests/test-serve.t:0: | |
39 | > > kill `cat hg.pid` |
|
36 | > > kill `cat hg.pid` | |
40 | don't use kill, use killdaemons.py |
|
37 | don't use kill, use killdaemons.py | |
41 | tests/test-serve.t:0: |
|
38 | tests/test-serve.t:0: | |
42 | > > kill `cat hg.pid` 2>/dev/null |
|
39 | > > kill `cat hg.pid` 2>/dev/null | |
43 |
|
|
40 | don't use kill, use killdaemons.py | |
44 | [1] |
|
41 | [1] |
@@ -1,44 +1,44 b'' | |||||
1 |
|
1 | |||
2 | $ "$TESTDIR/hghave" inotify || exit 80 |
|
2 | $ "$TESTDIR/hghave" inotify || exit 80 | |
3 | $ hg init |
|
3 | $ hg init | |
4 | $ touch a b c d e f |
|
4 | $ touch a b c d e f | |
5 | $ echo "[extensions]" >> $HGRCPATH |
|
5 | $ echo "[extensions]" >> $HGRCPATH | |
6 | $ echo "inotify=" >> $HGRCPATH |
|
6 | $ echo "inotify=" >> $HGRCPATH | |
7 |
|
7 | |||
8 | inserve |
|
8 | inserve | |
9 |
|
9 | |||
10 | $ hg inserve -d --pid-file=hg.pid 2>&1 |
|
10 | $ hg inserve -d --pid-file=hg.pid 2>&1 | |
11 | $ cat hg.pid >> "$DAEMON_PIDS" |
|
11 | $ cat hg.pid >> "$DAEMON_PIDS" | |
12 | $ hg ci -Am m |
|
12 | $ hg ci -Am m | |
13 | adding a |
|
13 | adding a | |
14 | adding b |
|
14 | adding b | |
15 | adding c |
|
15 | adding c | |
16 | adding d |
|
16 | adding d | |
17 | adding e |
|
17 | adding e | |
18 | adding f |
|
18 | adding f | |
19 | adding hg.pid |
|
19 | adding hg.pid | |
20 |
|
20 | |||
21 | let the daemon finish its stuff |
|
21 | let the daemon finish its stuff | |
22 |
|
22 | |||
23 | $ sleep 1 |
|
23 | $ sleep 1 | |
24 |
|
24 | |||
25 | eed to test all file operations |
|
25 | eed to test all file operations | |
26 |
|
26 | |||
27 | $ hg rm a |
|
27 | $ hg rm a | |
28 | $ rm b |
|
28 | $ rm b | |
29 | $ echo c >> c |
|
29 | $ echo c >> c | |
30 | $ touch g |
|
30 | $ touch g | |
31 | $ hg add g |
|
31 | $ hg add g | |
32 | $ hg mv e h |
|
32 | $ hg mv e h | |
33 | $ hg status |
|
33 | $ hg status | |
34 | M c |
|
34 | M c | |
35 | A g |
|
35 | A g | |
36 | A h |
|
36 | A h | |
37 | R a |
|
37 | R a | |
38 | R e |
|
38 | R e | |
39 | ! b |
|
39 | ! b | |
40 | $ sleep 1 |
|
40 | $ sleep 1 | |
41 |
|
41 | |||
42 | Are we able to kill the service? if not, the service died on some error |
|
42 | Are we able to kill the service? if not, the service died on some error | |
43 |
|
43 | |||
44 | $ kill `cat hg.pid` |
|
44 | $ "$TESTDIR/killdaemons.py" hg.pid |
General Comments 0
You need to be logged in to leave comments.
Login now