Show More
@@ -0,0 +1,29 b'' | |||||
|
1 | DOCUMENT_ROOT="/var/www/hg"; export DOCUMENT_ROOT | |||
|
2 | GATEWAY_INTERFACE="CGI/1.1"; export GATEWAY_INTERFACE | |||
|
3 | HTTP_ACCEPT="text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5"; export HTTP_ACCEPT | |||
|
4 | HTTP_ACCEPT_CHARSET="ISO-8859-1,utf-8;q=0.7,*;q=0.7"; export HTTP_ACCEPT_CHARSET | |||
|
5 | HTTP_ACCEPT_ENCODING="gzip,deflate"; export HTTP_ACCEPT_ENCODING | |||
|
6 | HTTP_ACCEPT_LANGUAGE="en-us,en;q=0.5"; export HTTP_ACCEPT_LANGUAGE | |||
|
7 | HTTP_CACHE_CONTROL="max-age=0"; export HTTP_CACHE_CONTROL | |||
|
8 | HTTP_CONNECTION="keep-alive"; export HTTP_CONNECTION | |||
|
9 | HTTP_HOST="hg.omnifarious.org"; export HTTP_HOST | |||
|
10 | HTTP_KEEP_ALIVE="300"; export HTTP_KEEP_ALIVE | |||
|
11 | HTTP_USER_AGENT="Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.0.4) Gecko/20060608 Ubuntu/dapper-security Firefox/1.5.0.4"; export HTTP_USER_AGENT | |||
|
12 | PATH_INFO="/"; export PATH_INFO | |||
|
13 | PATH_TRANSLATED="/var/www/hg/index.html"; export PATH_TRANSLATED | |||
|
14 | QUERY_STRING=""; export QUERY_STRING | |||
|
15 | REMOTE_ADDR="127.0.0.2"; export REMOTE_ADDR | |||
|
16 | REMOTE_PORT="44703"; export REMOTE_PORT | |||
|
17 | REQUEST_METHOD="GET"; export REQUEST_METHOD | |||
|
18 | REQUEST_URI="/test/"; export REQUEST_URI | |||
|
19 | SCRIPT_FILENAME="/home/hopper/hg_public/test.cgi"; export SCRIPT_FILENAME | |||
|
20 | SCRIPT_NAME="/test"; export SCRIPT_NAME | |||
|
21 | SCRIPT_URI="http://hg.omnifarious.org/test/"; export SCRIPT_URI | |||
|
22 | SCRIPT_URL="/test/"; export SCRIPT_URL | |||
|
23 | SERVER_ADDR="127.0.0.1"; export SERVER_ADDR | |||
|
24 | SERVER_ADMIN="eric@localhost"; export SERVER_ADMIN | |||
|
25 | SERVER_NAME="hg.omnifarious.org"; export SERVER_NAME | |||
|
26 | SERVER_PORT="80"; export SERVER_PORT | |||
|
27 | SERVER_PROTOCOL="HTTP/1.1"; export SERVER_PROTOCOL | |||
|
28 | SERVER_SIGNATURE="<address>Apache/2.0.53 (Fedora) Server at hg.omnifarious.org Port 80</address>"; export SERVER_SIGNATURE | |||
|
29 | SERVER_SOFTWARE="Apache/2.0.53 (Fedora)"; export SERVER_SOFTWARE |
@@ -19,37 +19,10 b' initialize repository' | |||||
19 | > wsgicgi.launch(application) |
|
19 | > wsgicgi.launch(application) | |
20 | > HGWEB |
|
20 | > HGWEB | |
21 | $ chmod 755 hgweb.cgi |
|
21 | $ chmod 755 hgweb.cgi | |
22 | $ DOCUMENT_ROOT="/var/www/hg"; export DOCUMENT_ROOT |
|
|||
23 | $ GATEWAY_INTERFACE="CGI/1.1"; export GATEWAY_INTERFACE |
|
|||
24 | $ HTTP_ACCEPT="text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5"; export HTTP_ACCEPT |
|
|||
25 | $ HTTP_ACCEPT_CHARSET="ISO-8859-1,utf-8;q=0.7,*;q=0.7"; export HTTP_ACCEPT_CHARSET |
|
|||
26 | $ HTTP_ACCEPT_ENCODING="gzip,deflate"; export HTTP_ACCEPT_ENCODING |
|
|||
27 | $ HTTP_ACCEPT_LANGUAGE="en-us,en;q=0.5"; export HTTP_ACCEPT_LANGUAGE |
|
|||
28 | $ HTTP_CACHE_CONTROL="max-age=0"; export HTTP_CACHE_CONTROL |
|
|||
29 | $ HTTP_CONNECTION="keep-alive"; export HTTP_CONNECTION |
|
|||
30 | $ HTTP_HOST="hg.omnifarious.org"; export HTTP_HOST |
|
|||
31 | $ HTTP_KEEP_ALIVE="300"; export HTTP_KEEP_ALIVE |
|
|||
32 | $ HTTP_USER_AGENT="Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.0.4) Gecko/20060608 Ubuntu/dapper-security Firefox/1.5.0.4"; export HTTP_USER_AGENT |
|
|||
33 | $ PATH_INFO="/"; export PATH_INFO |
|
|||
34 | $ PATH_TRANSLATED="/var/www/hg/index.html"; export PATH_TRANSLATED |
|
|||
35 | $ REMOTE_ADDR="127.0.0.2"; export REMOTE_ADDR |
|
|||
36 | $ REMOTE_PORT="44703"; export REMOTE_PORT |
|
|||
37 | $ REQUEST_METHOD="GET"; export REQUEST_METHOD |
|
|||
38 | $ REQUEST_URI="/test/"; export REQUEST_URI |
|
|||
39 | $ SCRIPT_FILENAME="/home/hopper/hg_public/test.cgi"; export SCRIPT_FILENAME |
|
|||
40 | $ SCRIPT_NAME="/test"; export SCRIPT_NAME |
|
|||
41 | $ SCRIPT_URI="http://hg.omnifarious.org/test/"; export SCRIPT_URI |
|
|||
42 | $ SCRIPT_URL="/test/"; export SCRIPT_URL |
|
|||
43 | $ SERVER_ADDR="127.0.0.1"; export SERVER_ADDR |
|
|||
44 | $ SERVER_ADMIN="eric@localhost"; export SERVER_ADMIN |
|
|||
45 | $ SERVER_NAME="hg.omnifarious.org"; export SERVER_NAME |
|
|||
46 | $ SERVER_PORT="80"; export SERVER_PORT |
|
|||
47 | $ SERVER_PROTOCOL="HTTP/1.1"; export SERVER_PROTOCOL |
|
|||
48 | $ SERVER_SIGNATURE="<address>Apache/2.0.53 (Fedora) Server at hg.omnifarious.org Port 80</address>"; export SERVER_SIGNATURE |
|
|||
49 | $ SERVER_SOFTWARE="Apache/2.0.53 (Fedora)"; export SERVER_SOFTWARE |
|
|||
50 |
|
22 | |||
51 |
|
|
23 | try hgweb request | |
52 |
|
24 | |||
|
25 | $ . "$TESTDIR/cgienv" | |||
53 |
$ |
|
26 | $ QUERY_STRING="cmd=changegroup&roots=0000000000000000000000000000000000000000"; export QUERY_STRING | |
54 |
$ python |
|
27 | $ python hgweb.cgi >page1 2>&1 | |
55 |
$ python |
|
28 | $ python "$TESTDIR/md5sum.py" page1 |
@@ -49,36 +49,7 b' before d74fc8dec2b4 still work.' | |||||
49 |
|
49 | |||
50 | $ chmod 755 hgwebdir.cgi |
|
50 | $ chmod 755 hgwebdir.cgi | |
51 |
|
51 | |||
52 | $ DOCUMENT_ROOT="/var/www/hg"; export DOCUMENT_ROOT |
|
52 | $ . "$TESTDIR/cgienv" | |
53 | $ GATEWAY_INTERFACE="CGI/1.1"; export GATEWAY_INTERFACE |
|
|||
54 | $ HTTP_ACCEPT="text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5"; export HTTP_ACCEPT |
|
|||
55 | $ HTTP_ACCEPT_CHARSET="ISO-8859-1,utf-8;q=0.7,*;q=0.7"; export HTTP_ACCEPT_CHARSET |
|
|||
56 | $ HTTP_ACCEPT_ENCODING="gzip,deflate"; export HTTP_ACCEPT_ENCODING |
|
|||
57 | $ HTTP_ACCEPT_LANGUAGE="en-us,en;q=0.5"; export HTTP_ACCEPT_LANGUAGE |
|
|||
58 | $ HTTP_CACHE_CONTROL="max-age=0"; export HTTP_CACHE_CONTROL |
|
|||
59 | $ HTTP_CONNECTION="keep-alive"; export HTTP_CONNECTION |
|
|||
60 | $ HTTP_HOST="hg.omnifarious.org"; export HTTP_HOST |
|
|||
61 | $ HTTP_KEEP_ALIVE="300"; export HTTP_KEEP_ALIVE |
|
|||
62 | $ HTTP_USER_AGENT="Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.0.4) Gecko/20060608 Ubuntu/dapper-security Firefox/1.5.0.4"; export HTTP_USER_AGENT |
|
|||
63 | $ PATH_INFO="/"; export PATH_INFO |
|
|||
64 | $ PATH_TRANSLATED="/var/www/hg/index.html"; export PATH_TRANSLATED |
|
|||
65 | $ QUERY_STRING=""; export QUERY_STRING |
|
|||
66 | $ REMOTE_ADDR="127.0.0.2"; export REMOTE_ADDR |
|
|||
67 | $ REMOTE_PORT="44703"; export REMOTE_PORT |
|
|||
68 | $ REQUEST_METHOD="GET"; export REQUEST_METHOD |
|
|||
69 | $ REQUEST_URI="/test/"; export REQUEST_URI |
|
|||
70 | $ SCRIPT_FILENAME="/home/hopper/hg_public/test.cgi"; export SCRIPT_FILENAME |
|
|||
71 | $ SCRIPT_NAME="/test"; export SCRIPT_NAME |
|
|||
72 | $ SCRIPT_URI="http://hg.omnifarious.org/test/"; export SCRIPT_URI |
|
|||
73 | $ SCRIPT_URL="/test/"; export SCRIPT_URL |
|
|||
74 | $ SERVER_ADDR="127.0.0.1"; export SERVER_ADDR |
|
|||
75 | $ SERVER_ADMIN="eric@localhost"; export SERVER_ADMIN |
|
|||
76 | $ SERVER_NAME="hg.omnifarious.org"; export SERVER_NAME |
|
|||
77 | $ SERVER_PORT="80"; export SERVER_PORT |
|
|||
78 | $ SERVER_PROTOCOL="HTTP/1.1"; export SERVER_PROTOCOL |
|
|||
79 | $ SERVER_SIGNATURE="<address>Apache/2.0.53 (Fedora) Server at hg.omnifarious.org Port 80</address>"; export SERVER_SIGNATURE |
|
|||
80 | $ SERVER_SOFTWARE="Apache/2.0.53 (Fedora)"; export SERVER_SOFTWARE |
|
|||
81 |
|
||||
82 |
$ |
|
53 | $ python hgweb.cgi > page1 | |
83 | $ python hgwebdir.cgi > page2 |
|
54 | $ python hgwebdir.cgi > page2 | |
84 |
|
55 |
@@ -43,36 +43,7 b' This is a rudimentary test of the CGI fi' | |||||
43 |
|
43 | |||
44 | $ chmod 755 hgwebdir.cgi |
|
44 | $ chmod 755 hgwebdir.cgi | |
45 |
|
45 | |||
46 | $ DOCUMENT_ROOT="/var/www/hg"; export DOCUMENT_ROOT |
|
46 | $ . "$TESTDIR/cgienv" | |
47 | $ GATEWAY_INTERFACE="CGI/1.1"; export GATEWAY_INTERFACE |
|
|||
48 | $ HTTP_ACCEPT="text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5"; export HTTP_ACCEPT |
|
|||
49 | $ HTTP_ACCEPT_CHARSET="ISO-8859-1,utf-8;q=0.7,*;q=0.7"; export HTTP_ACCEPT_CHARSET |
|
|||
50 | $ HTTP_ACCEPT_ENCODING="gzip,deflate"; export HTTP_ACCEPT_ENCODING |
|
|||
51 | $ HTTP_ACCEPT_LANGUAGE="en-us,en;q=0.5"; export HTTP_ACCEPT_LANGUAGE |
|
|||
52 | $ HTTP_CACHE_CONTROL="max-age=0"; export HTTP_CACHE_CONTROL |
|
|||
53 | $ HTTP_CONNECTION="keep-alive"; export HTTP_CONNECTION |
|
|||
54 | $ HTTP_HOST="hg.omnifarious.org"; export HTTP_HOST |
|
|||
55 | $ HTTP_KEEP_ALIVE="300"; export HTTP_KEEP_ALIVE |
|
|||
56 | $ HTTP_USER_AGENT="Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.0.4) Gecko/20060608 Ubuntu/dapper-security Firefox/1.5.0.4"; export HTTP_USER_AGENT |
|
|||
57 | $ PATH_INFO="/"; export PATH_INFO |
|
|||
58 | $ PATH_TRANSLATED="/var/www/hg/index.html"; export PATH_TRANSLATED |
|
|||
59 | $ QUERY_STRING=""; export QUERY_STRING |
|
|||
60 | $ REMOTE_ADDR="127.0.0.2"; export REMOTE_ADDR |
|
|||
61 | $ REMOTE_PORT="44703"; export REMOTE_PORT |
|
|||
62 | $ REQUEST_METHOD="GET"; export REQUEST_METHOD |
|
|||
63 | $ REQUEST_URI="/test/"; export REQUEST_URI |
|
|||
64 | $ SCRIPT_FILENAME="/home/hopper/hg_public/test.cgi"; export SCRIPT_FILENAME |
|
|||
65 | $ SCRIPT_NAME="/test"; export SCRIPT_NAME |
|
|||
66 | $ SCRIPT_URI="http://hg.omnifarious.org/test/"; export SCRIPT_URI |
|
|||
67 | $ SCRIPT_URL="/test/"; export SCRIPT_URL |
|
|||
68 | $ SERVER_ADDR="127.0.0.1"; export SERVER_ADDR |
|
|||
69 | $ SERVER_ADMIN="eric@localhost"; export SERVER_ADMIN |
|
|||
70 | $ SERVER_NAME="hg.omnifarious.org"; export SERVER_NAME |
|
|||
71 | $ SERVER_PORT="80"; export SERVER_PORT |
|
|||
72 | $ SERVER_PROTOCOL="HTTP/1.1"; export SERVER_PROTOCOL |
|
|||
73 | $ SERVER_SIGNATURE="<address>Apache/2.0.53 (Fedora) Server at hg.omnifarious.org Port 80</address>"; export SERVER_SIGNATURE |
|
|||
74 | $ SERVER_SOFTWARE="Apache/2.0.53 (Fedora)"; export SERVER_SOFTWARE |
|
|||
75 |
|
||||
76 |
$ |
|
47 | $ python hgweb.cgi > page1 | |
77 | $ python hgwebdir.cgi > page2 |
|
48 | $ python hgwebdir.cgi > page2 | |
78 |
|
49 | |||
@@ -81,7 +52,6 b' This is a rudimentary test of the CGI fi' | |||||
81 | $ REQUEST_URI="/test/test/" |
|
52 | $ REQUEST_URI="/test/test/" | |
82 | $ SCRIPT_URI="http://hg.omnifarious.org/test/test/" |
|
53 | $ SCRIPT_URI="http://hg.omnifarious.org/test/test/" | |
83 | $ SCRIPT_URL="/test/test/" |
|
54 | $ SCRIPT_URL="/test/test/" | |
84 |
|
||||
85 | $ python hgwebdir.cgi > page3 |
|
55 | $ python hgwebdir.cgi > page3 | |
86 |
|
56 | |||
87 | $ grep -i error page1 page2 page3 |
|
57 | $ grep -i error page1 page2 page3 |
@@ -59,36 +59,7 b' This tests if CGI files from before d0db' | |||||
59 |
|
59 | |||
60 | $ chmod 755 hgwebdir.cgi |
|
60 | $ chmod 755 hgwebdir.cgi | |
61 |
|
61 | |||
62 | $ DOCUMENT_ROOT="/var/www/hg"; export DOCUMENT_ROOT |
|
62 | $ . "$TESTDIR/cgienv" | |
63 | $ GATEWAY_INTERFACE="CGI/1.1"; export GATEWAY_INTERFACE |
|
|||
64 | $ HTTP_ACCEPT="text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5"; export HTTP_ACCEPT |
|
|||
65 | $ HTTP_ACCEPT_CHARSET="ISO-8859-1,utf-8;q=0.7,*;q=0.7"; export HTTP_ACCEPT_CHARSET |
|
|||
66 | $ HTTP_ACCEPT_ENCODING="gzip,deflate"; export HTTP_ACCEPT_ENCODING |
|
|||
67 | $ HTTP_ACCEPT_LANGUAGE="en-us,en;q=0.5"; export HTTP_ACCEPT_LANGUAGE |
|
|||
68 | $ HTTP_CACHE_CONTROL="max-age=0"; export HTTP_CACHE_CONTROL |
|
|||
69 | $ HTTP_CONNECTION="keep-alive"; export HTTP_CONNECTION |
|
|||
70 | $ HTTP_HOST="hg.omnifarious.org"; export HTTP_HOST |
|
|||
71 | $ HTTP_KEEP_ALIVE="300"; export HTTP_KEEP_ALIVE |
|
|||
72 | $ HTTP_USER_AGENT="Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.0.4) Gecko/20060608 Ubuntu/dapper-security Firefox/1.5.0.4"; export HTTP_USER_AGENT |
|
|||
73 | $ PATH_INFO="/"; export PATH_INFO |
|
|||
74 | $ PATH_TRANSLATED="/var/www/hg/index.html"; export PATH_TRANSLATED |
|
|||
75 | $ QUERY_STRING=""; export QUERY_STRING |
|
|||
76 | $ REMOTE_ADDR="127.0.0.2"; export REMOTE_ADDR |
|
|||
77 | $ REMOTE_PORT="44703"; export REMOTE_PORT |
|
|||
78 | $ REQUEST_METHOD="GET"; export REQUEST_METHOD |
|
|||
79 | $ REQUEST_URI="/test/"; export REQUEST_URI |
|
|||
80 | $ SCRIPT_FILENAME="/home/hopper/hg_public/test.cgi"; export SCRIPT_FILENAME |
|
|||
81 | $ SCRIPT_NAME="/test"; export SCRIPT_NAME |
|
|||
82 | $ SCRIPT_URI="http://hg.omnifarious.org/test/"; export SCRIPT_URI |
|
|||
83 | $ SCRIPT_URL="/test/"; export SCRIPT_URL |
|
|||
84 | $ SERVER_ADDR="127.0.0.1"; export SERVER_ADDR |
|
|||
85 | $ SERVER_ADMIN="eric@localhost"; export SERVER_ADMIN |
|
|||
86 | $ SERVER_NAME="hg.omnifarious.org"; export SERVER_NAME |
|
|||
87 | $ SERVER_PORT="80"; export SERVER_PORT |
|
|||
88 | $ SERVER_PROTOCOL="HTTP/1.1"; export SERVER_PROTOCOL |
|
|||
89 | $ SERVER_SIGNATURE="<address>Apache/2.0.53 (Fedora) Server at hg.omnifarious.org Port 80</address>"; export SERVER_SIGNATURE |
|
|||
90 | $ SERVER_SOFTWARE="Apache/2.0.53 (Fedora)"; export SERVER_SOFTWARE |
|
|||
91 |
|
||||
92 |
$ |
|
63 | $ python hgweb.cgi > page1 | |
93 | $ python hgwebdir.cgi > page2 |
|
64 | $ python hgwebdir.cgi > page2 | |
94 |
|
65 |
General Comments 0
You need to be logged in to leave comments.
Login now