##// END OF EJS Templates
Fix new tests to be better. In particular, fix webraw test to...
Eric Hopper -
r2536:8106e477 default
parent child Browse files
Show More
@@ -93,5 +93,11 b' declare -x SERVER_SIGNATURE="<address>Ap'
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
@@ -1,2 +1,3 b''
1 0
1 0
2 0
2 0
3 0
@@ -9,7 +9,7 b' It is very boring to read, but computers'
9 care about things like that.
9 care about things like that.
10 ENDSOME
10 ENDSOME
11 hg add sometext.txt
11 hg add sometext.txt
12 hg commit -m "Just some text"
12 hg commit -d "1 0" -m "Just some text"
13 hg serve -p 20059 -A access.log -E error.log -d --pid-file=hg.pid
13 hg serve -p 20059 -A access.log -E error.log -d --pid-file=hg.pid
14 ("$TESTDIR/get-with-headers.py" localhost:20059 '/?f=f165dc289438;file=sometext.txt;style=raw' content-type content-length content-disposition) >getoutput.txt &
14 ("$TESTDIR/get-with-headers.py" localhost:20059 '/?f=f165dc289438;file=sometext.txt;style=raw' content-type content-length content-disposition) >getoutput.txt &
15
15
General Comments 0
You need to be logged in to leave comments. Login now