Show More
@@ -1,51 +1,47 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-hgweb-raw.t:0: |
|
|||
14 | > $ while kill `cat hg.pid` 2>/dev/null; do sleep 0; done |
|
|||
15 | don't use kill, use killdaemons.py |
|
|||
16 | don't use kill, use killdaemons.py |
|
|||
17 | tests/test-inotify-debuginotify.t:0: |
|
13 | tests/test-inotify-debuginotify.t:0: | |
18 | > $ kill `cat hg.pid` |
|
14 | > $ kill `cat hg.pid` | |
19 | don't use kill, use killdaemons.py |
|
15 | don't use kill, use killdaemons.py | |
20 | tests/test-inotify-issue1371.t:0: |
|
16 | tests/test-inotify-issue1371.t:0: | |
21 | > $ kill `cat hg.pid` |
|
17 | > $ kill `cat hg.pid` | |
22 | don't use kill, use killdaemons.py |
|
18 | don't use kill, use killdaemons.py | |
23 | tests/test-inotify-issue1542.t:0: |
|
19 | tests/test-inotify-issue1542.t:0: | |
24 | > $ kill `cat hg.pid` |
|
20 | > $ kill `cat hg.pid` | |
25 | don't use kill, use killdaemons.py |
|
21 | don't use kill, use killdaemons.py | |
26 | tests/test-inotify-issue1556.t:0: |
|
22 | tests/test-inotify-issue1556.t:0: | |
27 | > $ kill `cat hg.pid` |
|
23 | > $ kill `cat hg.pid` | |
28 | don't use kill, use killdaemons.py |
|
24 | don't use kill, use killdaemons.py | |
29 | tests/test-inotify-lookup.t:0: |
|
25 | tests/test-inotify-lookup.t:0: | |
30 | > $ kill `cat .hg/inotify.pid` |
|
26 | > $ kill `cat .hg/inotify.pid` | |
31 | don't use kill, use killdaemons.py |
|
27 | don't use kill, use killdaemons.py | |
32 | tests/test-inotify.t:0: |
|
28 | tests/test-inotify.t:0: | |
33 | > $ kill `cat ../hg2.pid` |
|
29 | > $ kill `cat ../hg2.pid` | |
34 | don't use kill, use killdaemons.py |
|
30 | don't use kill, use killdaemons.py | |
35 | tests/test-inotify.t:0: |
|
31 | tests/test-inotify.t:0: | |
36 | > $ kill `cat hg.pid` |
|
32 | > $ kill `cat hg.pid` | |
37 | don't use kill, use killdaemons.py |
|
33 | don't use kill, use killdaemons.py | |
38 | tests/test-inotify.t:0: |
|
34 | tests/test-inotify.t:0: | |
39 | > $ kill `cat hg3.pid` |
|
35 | > $ kill `cat hg3.pid` | |
40 | don't use kill, use killdaemons.py |
|
36 | don't use kill, use killdaemons.py | |
41 | tests/test-obsolete.t:0: |
|
37 | tests/test-obsolete.t:0: | |
42 | > $ kill `cat hg.pid` |
|
38 | > $ kill `cat hg.pid` | |
43 | don't use kill, use killdaemons.py |
|
39 | don't use kill, use killdaemons.py | |
44 | don't use kill, use killdaemons.py |
|
40 | don't use kill, use killdaemons.py | |
45 | tests/test-serve.t:0: |
|
41 | tests/test-serve.t:0: | |
46 | > > kill `cat hg.pid` |
|
42 | > > kill `cat hg.pid` | |
47 | don't use kill, use killdaemons.py |
|
43 | don't use kill, use killdaemons.py | |
48 | tests/test-serve.t:0: |
|
44 | tests/test-serve.t:0: | |
49 | > > kill `cat hg.pid` 2>/dev/null |
|
45 | > > kill `cat hg.pid` 2>/dev/null | |
50 | don't use kill, use killdaemons.py |
|
46 | don't use kill, use killdaemons.py | |
51 | [1] |
|
47 | [1] |
@@ -1,58 +1,58 b'' | |||||
1 | $ "$TESTDIR/hghave" serve || exit 80 |
|
1 | $ "$TESTDIR/hghave" serve || exit 80 | |
2 |
|
2 | |||
3 | Test raw style of hgweb |
|
3 | Test raw style of hgweb | |
4 |
|
4 | |||
5 | $ hg init test |
|
5 | $ hg init test | |
6 | $ cd test |
|
6 | $ cd test | |
7 | $ mkdir sub |
|
7 | $ mkdir sub | |
8 | $ cat >'sub/some text%.txt' <<ENDSOME |
|
8 | $ cat >'sub/some text%.txt' <<ENDSOME | |
9 | > This is just some random text |
|
9 | > This is just some random text | |
10 | > that will go inside the file and take a few lines. |
|
10 | > that will go inside the file and take a few lines. | |
11 | > It is very boring to read, but computers don't |
|
11 | > It is very boring to read, but computers don't | |
12 | > care about things like that. |
|
12 | > care about things like that. | |
13 | > ENDSOME |
|
13 | > ENDSOME | |
14 | $ hg add 'sub/some text%.txt' |
|
14 | $ hg add 'sub/some text%.txt' | |
15 | $ hg commit -d "1 0" -m "Just some text" |
|
15 | $ hg commit -d "1 0" -m "Just some text" | |
16 |
|
16 | |||
17 | $ hg serve -p $HGPORT -A access.log -E error.log -d --pid-file=hg.pid |
|
17 | $ hg serve -p $HGPORT -A access.log -E error.log -d --pid-file=hg.pid | |
18 |
|
18 | |||
19 | $ cat hg.pid >> $DAEMON_PIDS |
|
19 | $ cat hg.pid >> $DAEMON_PIDS | |
20 | $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '?f=bf0ff59095c9;file=sub/some%20text%25.txt;style=raw' content-type content-length content-disposition) >getoutput.txt |
|
20 | $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '?f=bf0ff59095c9;file=sub/some%20text%25.txt;style=raw' content-type content-length content-disposition) >getoutput.txt | |
21 |
|
21 | |||
22 | $ while kill `cat hg.pid` 2>/dev/null; do sleep 0; done |
|
22 | $ "$TESTDIR/killdaemons.py" hg.pid | |
23 |
|
23 | |||
24 | $ cat getoutput.txt |
|
24 | $ cat getoutput.txt | |
25 | 200 Script output follows |
|
25 | 200 Script output follows | |
26 | content-type: application/binary |
|
26 | content-type: application/binary | |
27 | content-length: 157 |
|
27 | content-length: 157 | |
28 | content-disposition: inline; filename="some text%.txt" |
|
28 | content-disposition: inline; filename="some text%.txt" | |
29 |
|
29 | |||
30 | This is just some random text |
|
30 | This is just some random text | |
31 | that will go inside the file and take a few lines. |
|
31 | that will go inside the file and take a few lines. | |
32 | It is very boring to read, but computers don't |
|
32 | It is very boring to read, but computers don't | |
33 | care about things like that. |
|
33 | care about things like that. | |
34 | $ cat access.log error.log |
|
34 | $ cat access.log error.log | |
35 | 127.0.0.1 - - [*] "GET /?f=bf0ff59095c9;file=sub/some%20text%25.txt;style=raw HTTP/1.1" 200 - (glob) |
|
35 | 127.0.0.1 - - [*] "GET /?f=bf0ff59095c9;file=sub/some%20text%25.txt;style=raw HTTP/1.1" 200 - (glob) | |
36 |
|
36 | |||
37 | $ rm access.log error.log |
|
37 | $ rm access.log error.log | |
38 | $ hg serve -p $HGPORT -A access.log -E error.log -d --pid-file=hg.pid \ |
|
38 | $ hg serve -p $HGPORT -A access.log -E error.log -d --pid-file=hg.pid \ | |
39 | > --config web.guessmime=True |
|
39 | > --config web.guessmime=True | |
40 |
|
40 | |||
41 | $ cat hg.pid >> $DAEMON_PIDS |
|
41 | $ cat hg.pid >> $DAEMON_PIDS | |
42 | $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '?f=bf0ff59095c9;file=sub/some%20text%25.txt;style=raw' content-type content-length content-disposition) >getoutput.txt |
|
42 | $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '?f=bf0ff59095c9;file=sub/some%20text%25.txt;style=raw' content-type content-length content-disposition) >getoutput.txt | |
43 | $ while kill `cat hg.pid` 2>/dev/null; do sleep 0; done |
|
43 | $ "$TESTDIR/killdaemons.py" hg.pid | |
44 |
|
44 | |||
45 |
$ cat |
|
45 | $ cat getoutput.txt | |
46 |
|
|
46 | 200 Script output follows | |
47 |
|
|
47 | content-type: text/plain; charset="ascii" | |
48 |
|
|
48 | content-length: 157 | |
49 |
|
|
49 | content-disposition: inline; filename="some text%.txt" | |
50 |
|
50 | |||
51 |
|
|
51 | This is just some random text | |
52 |
|
|
52 | that will go inside the file and take a few lines. | |
53 |
It |
|
53 | It is very boring to read, but computers don't | |
54 | care about things like that. |
|
54 | care about things like that. | |
55 | $ cat access.log error.log |
|
55 | $ cat access.log error.log | |
56 | 127.0.0.1 - - [*] "GET /?f=bf0ff59095c9;file=sub/some%20text%25.txt;style=raw HTTP/1.1" 200 - (glob) |
|
56 | 127.0.0.1 - - [*] "GET /?f=bf0ff59095c9;file=sub/some%20text%25.txt;style=raw HTTP/1.1" 200 - (glob) | |
57 |
|
57 | |||
58 | $ cd .. |
|
58 | $ cd .. |
General Comments 0
You need to be logged in to leave comments.
Login now