tests: add test for branches webcommand
authorDirkjan Ochtman <dirkjan@ochtman.nl>
Tue, 12 May 2009 11:05:13 +0200
changeset 8358 be2277c1dfcc
parent 8357 d974a32b59dc
child 8359 07ddec2ea203
tests: add test for branches webcommand
tests/test-hgweb-commands
tests/test-hgweb-commands.out
--- a/tests/test-hgweb-commands	Tue May 12 11:58:39 2009 +0200
+++ b/tests/test-hgweb-commands	Tue May 12 11:05:13 2009 +0200
@@ -13,6 +13,9 @@
 echo foo > foo
 hg ci -Ambase
 hg tag 1.0
+echo another > foo
+hg branch stable
+hg ci -Ambranch
 hg serve -n test -p $HGPORT -d --pid-file=hg.pid -E errors.log
 cat hg.pid >> $DAEMON_PIDS
 
@@ -33,6 +36,7 @@
 
 echo % Overviews
 "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/tags/?style=atom' | sed "s/http:\/\/[^/]*\//http:\/\/127.0.0.1\//"
+"$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/branches/?style=gitweb' | sed "s/http:\/\/[^/]*\//http:\/\/127.0.0.1\//"
 "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/summary/?style=gitweb'
 "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/graph/?style=gitweb'
 
Binary file tests/test-hgweb-commands.out has changed