Mercurial > hg
comparison tests/test-hgwebdir @ 5601:8279cb841467
hgwebdir: split out makeindex function, facilitate test failure diagnosis
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Mon, 03 Dec 2007 18:40:37 +0100 |
parents | b90b72729a72 |
children | 268c582bd42a |
comparison
equal
deleted
inserted
replaced
5600:9d900f7282e6 | 5601:8279cb841467 |
---|---|
25 a=$root/a | 25 a=$root/a |
26 b=$root/b | 26 b=$root/b |
27 EOF | 27 EOF |
28 | 28 |
29 hg serve -p $HGPORT -d --pid-file=hg.pid --webdir-conf paths.conf \ | 29 hg serve -p $HGPORT -d --pid-file=hg.pid --webdir-conf paths.conf \ |
30 -A access-paths.log -E error-paths.log | 30 -A access-paths.log -E error-paths-1.log |
31 cat hg.pid >> $DAEMON_PIDS | 31 cat hg.pid >> $DAEMON_PIDS |
32 | 32 |
33 echo % should give a 404 - file does not exist | 33 echo % should give a 404 - file does not exist |
34 "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/a/file/tip/bork?style=raw' | 34 "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/a/file/tip/bork?style=raw' |
35 | 35 |
46 t/a/=$root/a | 46 t/a/=$root/a |
47 b=$root/b | 47 b=$root/b |
48 EOF | 48 EOF |
49 | 49 |
50 hg serve -p $HGPORT1 -d --pid-file=hg.pid --webdir-conf paths.conf \ | 50 hg serve -p $HGPORT1 -d --pid-file=hg.pid --webdir-conf paths.conf \ |
51 -A access-paths.log -E error-paths.log | 51 -A access-paths.log -E error-paths-2.log |
52 cat hg.pid >> $DAEMON_PIDS | 52 cat hg.pid >> $DAEMON_PIDS |
53 | 53 |
54 echo % should succeed, slashy names | 54 echo % should succeed, slashy names |
55 "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/?style=raw' | 55 "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/?style=raw' |
56 "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/t?style=raw' | 56 "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/t?style=raw' |
73 echo % should succeed | 73 echo % should succeed |
74 "$TESTDIR/get-with-headers.py" localhost:$HGPORT2 '/?style=raw' | 74 "$TESTDIR/get-with-headers.py" localhost:$HGPORT2 '/?style=raw' |
75 "$TESTDIR/get-with-headers.py" localhost:$HGPORT2 '/a/file/tip/a?style=raw' | 75 "$TESTDIR/get-with-headers.py" localhost:$HGPORT2 '/a/file/tip/a?style=raw' |
76 "$TESTDIR/get-with-headers.py" localhost:$HGPORT2 '/b/file/tip/b?style=raw' | 76 "$TESTDIR/get-with-headers.py" localhost:$HGPORT2 '/b/file/tip/b?style=raw' |
77 "$TESTDIR/get-with-headers.py" localhost:$HGPORT2 '/c/file/tip/c?style=raw' | 77 "$TESTDIR/get-with-headers.py" localhost:$HGPORT2 '/c/file/tip/c?style=raw' |
78 | |
79 echo % paths errors 1 | |
80 cat error-paths-1.log | |
81 echo % paths errors 2 | |
82 cat error-paths-2.log | |
83 echo % collections errors | |
84 cat error-collections.log |