comparison tests/test-oldcgi @ 2536:8106e477f584

Fix new tests to be better. In particular, fix webraw test to specify a date on commit to be less brittle, and fix test-oldcgi to test fetching a subdirectory of a webdir instance.
author Eric Hopper <hopper@omnifarious.org>
date Fri, 30 Jun 2006 08:45:52 -0700
parents 589474a1dc36
children 800a582e2405
comparison
equal deleted inserted replaced
2535:b8ccf6386db7 2536:8106e477f584
91 declare -x SERVER_SIGNATURE="<address>Apache/2.0.53 (Fedora) Server at hg.omnifarious.org Port 80</address>\ 91 declare -x SERVER_SIGNATURE="<address>Apache/2.0.53 (Fedora) Server at hg.omnifarious.org Port 80</address>\
92 " 92 "
93 declare -x SERVER_SOFTWARE="Apache/2.0.53 (Fedora)" 93 declare -x SERVER_SOFTWARE="Apache/2.0.53 (Fedora)"
94 ./hgweb.cgi >page1 2>&1 ; echo $? 94 ./hgweb.cgi >page1 2>&1 ; echo $?
95 ./hgwebdir.cgi >page2 2>&1 ; echo $? 95 ./hgwebdir.cgi >page2 2>&1 ; echo $?
96 fgrep -i error page1 page2 && exit 1 96 PATH_INFO="/test/"
97 PATH_TRANSLATED="/var/something/test.cgi"
98 REQUEST_URI="/test/test/"
99 SCRIPT_URI="http://hg.omnifarious.org/test/test/"
100 SCRIPT_URL="/test/test/"
101 ./hgwebdir.cgi >page3 2>&1 ; echo $?
102 fgrep -i error page1 page2 page3 && exit 1
97 exit 0 103 exit 0