tests: add tests for hgweb to test-keyword stable
authorDirkjan Ochtman <dirkjan@ochtman.nl>
Sat, 22 Mar 2008 18:33:10 +0100
branchstable
changeset 429 688d71563c07
parent 427 39fef460b62c
child 430 15a4c3d86501
child 431 4fb8a2e526ff
tests: add tests for hgweb to test-keyword [ original upstream description ]
tests/test-keyword
tests/test-keyword.out
--- a/tests/test-keyword	Fri Mar 21 14:52:24 2008 +0100
+++ b/tests/test-keyword	Sat Mar 22 18:33:10 2008 +0100
@@ -296,3 +296,13 @@
 echo % hg cat
 hg cat sym a b
 echo
+
+echo % hg serve
+hg serve -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log
+cat hg.pid >> $DAEMON_PIDS
+echo % hgweb changeset
+("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/rev/tip/?style=raw')
+echo % hgweb filediff
+("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/diff/bb948857c743/a?style=raw')
+echo % errors encountered
+cat errors.log
--- a/tests/test-keyword.out	Fri Mar 21 14:52:24 2008 +0100
+++ b/tests/test-keyword.out	Sat Mar 22 18:33:10 2008 +0100
@@ -393,3 +393,39 @@
 $Xinfo$
 ignore $Id$
 a
+% hg serve
+% hgweb changeset
+200 Script output follows
+
+
+# HG changeset patch
+# User User Name <user@example.com>
+# Date 3 0
+# Node ID cfa68229c1167443337266ebac453c73b1d5d16e
+# Parent bb948857c743469b22bbf51f7ec8112279ca5d83
+xa
+
+--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
++++ b/x/a	Thu Jan 01 00:00:03 1970 +0000
+@@ -0,0 +1,4 @@
++expand $Id$
++do not process $Id:
++xxx $
++$Xinfo$
+
+% hgweb filediff
+200 Script output follows
+
+
+--- a/a	Thu Jan 01 00:00:00 1970 +0000
++++ b/a	Thu Jan 01 00:00:02 1970 +0000
+@@ -1,3 +1,4 @@
+ expand $Id$
+ do not process $Id:
+ xxx $
++$Xinfo$
+
+
+
+
+% errors encountered