##// END OF EJS Templates
tests: add more testing for webdir nesting
Dirkjan Ochtman -
r7202:268c582b default
parent child Browse files
Show More
@@ -16,8 +16,14 b" hg --cwd b ci -Amb -d'2 0'"
16 hg init c
16 hg init c
17 echo c > c/c
17 echo c > c/c
18 hg --cwd c ci -Amc -d'3 0'
18 hg --cwd c ci -Amc -d'3 0'
19
20 cd b
21 hg init d
22 echo d > d/d
23 hg --cwd d ci -Amd
24 cd ..
25
19 root=`pwd`
26 root=`pwd`
20
21 cd ..
27 cd ..
22
28
23 cat > paths.conf <<EOF
29 cat > paths.conf <<EOF
@@ -75,6 +81,7 b' echo % should succeed'
75 "$TESTDIR/get-with-headers.py" localhost:$HGPORT2 '/a/file/tip/a?style=raw'
81 "$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'
82 "$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'
83 "$TESTDIR/get-with-headers.py" localhost:$HGPORT2 '/c/file/tip/c?style=raw'
84 "$TESTDIR/get-with-headers.py" localhost:$HGPORT2 '/b/d/rev/tip/?style=raw'
78
85
79 echo % paths errors 1
86 echo % paths errors 1
80 cat error-paths-1.log
87 cat error-paths-1.log
@@ -1,6 +1,7 b''
1 adding a
1 adding a
2 adding b
2 adding b
3 adding c
3 adding c
4 adding d
4 % should give a 404 - file does not exist
5 % should give a 404 - file does not exist
5 404 Not Found
6 404 Not Found
6
7
@@ -108,6 +109,7 b' 200 Script output follows'
108
109
109 /a/
110 /a/
110 /b/
111 /b/
112 /b/d/
111 /c/
113 /c/
112
114
113 200 Script output follows
115 200 Script output follows
@@ -119,6 +121,21 b' b'
119 200 Script output follows
121 200 Script output follows
120
122
121 c
123 c
124 200 Script output follows
125
126
127 # HG changeset patch
128 # User test
129 # Date 0 0
130 # Node ID 43cb50608b2ae8635a62e2e8730adefc32a274ee
131
132 d
133
134 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
135 +++ b/d Thu Jan 01 00:00:00 1970 +0000
136 @@ -0,0 +1,1 @@
137 +d
138
122 % paths errors 1
139 % paths errors 1
123 % paths errors 2
140 % paths errors 2
124 % collections errors
141 % collections errors
General Comments 0
You need to be logged in to leave comments. Login now