Show More
@@ -1,53 +1,53 | |||
|
1 | 1 | #!/bin/sh |
|
2 | 2 | # An attempt at more fully testing the hgweb web interface. |
|
3 | 3 | # The following things are tested elsewhere and are therefore omitted: |
|
4 | 4 | # - archive, tested in test-archive |
|
5 | 5 | # - unbundle, tested in test-push-http |
|
6 | 6 | # - changegroupsubset, tested in test-pull |
|
7 | 7 | |
|
8 | 8 | echo % Set up the repo |
|
9 | 9 | hg init test |
|
10 | 10 | cd test |
|
11 | 11 | mkdir da |
|
12 | 12 | echo foo > da/foo |
|
13 | 13 | echo foo > foo |
|
14 | 14 | hg ci -d'0 0' -Ambase |
|
15 | 15 | hg tag 1.0 |
|
16 | 16 | hg serve -n test -p $HGPORT -d --pid-file=hg.pid -E errors.log |
|
17 | 17 | cat hg.pid >> $DAEMON_PIDS |
|
18 | 18 | |
|
19 | 19 | echo % Logs and changes |
|
20 | 20 | "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/log/?style=atom' | sed "s/http:\/\/[^/]*\//http:\/\/127.0.0.1\//" |
|
21 | 21 | "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/log/1/?style=atom' | sed "s/http:\/\/[^/]*\//http:\/\/127.0.0.1\//" |
|
22 | 22 | "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/log/1/foo/?style=atom' | sed "s/http:\/\/[^/]*\//http:\/\/127.0.0.1\//" |
|
23 | 23 | "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/shortlog/' | sed "s/[0-9]* years/many years/" |
|
24 | 24 | "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/rev/1/?style=raw' |
|
25 | 25 | |
|
26 | 26 | echo % File-related |
|
27 | 27 | "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/file/1/foo/?style=raw' |
|
28 | 28 | "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/annotate/1/foo/?style=raw' |
|
29 | 29 | "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/file/1/?style=raw' |
|
30 | 30 | "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/filediff/1/foo/?style=raw' |
|
31 | 31 | |
|
32 | 32 | echo % Overviews |
|
33 | 33 | "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/tags/?style=atom' | sed "s/http:\/\/[^/]*\//http:\/\/127.0.0.1\//" |
|
34 | "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/summary/?style=gitweb' | sed "s/[0-9]* years ago/long ago/" | |
|
34 | "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/summary/?style=gitweb' | sed "s/[0-9]* years ago/long ago/g" | |
|
35 | 35 | |
|
36 | 36 | echo % capabilities |
|
37 | 37 | "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/capabilities' |
|
38 | 38 | echo % heads |
|
39 | 39 | "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/heads' |
|
40 | 40 | echo % lookup |
|
41 | 41 | "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/lookup/1' |
|
42 | 42 | echo % branches |
|
43 | 43 | "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/branches' |
|
44 | 44 | echo % changegroup |
|
45 | 45 | "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/changegroup' |
|
46 | 46 | echo % stream_out |
|
47 | 47 | "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/stream_out' |
|
48 | 48 | |
|
49 | 49 | echo % Static files |
|
50 | 50 | "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/static/style.css' |
|
51 | 51 | |
|
52 | 52 | echo % ERRORS ENCOUNTERED |
|
53 | 53 | cat errors.log |
|
1 | NO CONTENT: modified file, binary diff hidden |
General Comments 0
You need to be logged in to leave comments.
Login now