Mercurial > hg
changeset 7202:268c582bd42a
tests: add more testing for webdir nesting
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Wed, 22 Oct 2008 18:32:17 +0200 |
parents | b1aea76f7001 |
children | e9a44a8e0ddc |
files | tests/test-hgwebdir tests/test-hgwebdir.out |
diffstat | 2 files changed, 25 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-hgwebdir Wed Oct 22 18:23:32 2008 +0200 +++ b/tests/test-hgwebdir Wed Oct 22 18:32:17 2008 +0200 @@ -16,8 +16,14 @@ hg init c echo c > c/c hg --cwd c ci -Amc -d'3 0' + +cd b +hg init d +echo d > d/d +hg --cwd d ci -Amd +cd .. + root=`pwd` - cd .. cat > paths.conf <<EOF @@ -75,6 +81,7 @@ "$TESTDIR/get-with-headers.py" localhost:$HGPORT2 '/a/file/tip/a?style=raw' "$TESTDIR/get-with-headers.py" localhost:$HGPORT2 '/b/file/tip/b?style=raw' "$TESTDIR/get-with-headers.py" localhost:$HGPORT2 '/c/file/tip/c?style=raw' +"$TESTDIR/get-with-headers.py" localhost:$HGPORT2 '/b/d/rev/tip/?style=raw' echo % paths errors 1 cat error-paths-1.log
--- a/tests/test-hgwebdir.out Wed Oct 22 18:23:32 2008 +0200 +++ b/tests/test-hgwebdir.out Wed Oct 22 18:32:17 2008 +0200 @@ -1,6 +1,7 @@ adding a adding b adding c +adding d % should give a 404 - file does not exist 404 Not Found @@ -108,6 +109,7 @@ /a/ /b/ +/b/d/ /c/ 200 Script output follows @@ -119,6 +121,21 @@ 200 Script output follows c +200 Script output follows + + +# HG changeset patch +# User test +# Date 0 0 +# Node ID 43cb50608b2ae8635a62e2e8730adefc32a274ee + +d + +--- /dev/null Thu Jan 01 00:00:00 1970 +0000 ++++ b/d Thu Jan 01 00:00:00 1970 +0000 +@@ -0,0 +1,1 @@ ++d + % paths errors 1 % paths errors 2 % collections errors