Mercurial > hg
comparison tests/test-oldcgi @ 2540:800a582e2405
Don't use non-sh declare in test-oldcgi.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 30 Jun 2006 21:40:20 +0200 |
parents | 8106e477f584 |
children | 14dff1dacabe |
comparison
equal
deleted
inserted
replaced
2539:8a8d9ada4528 | 2540:800a582e2405 |
---|---|
56 h = hgweb.hgwebdir("hgweb.config") | 56 h = hgweb.hgwebdir("hgweb.config") |
57 h.run() | 57 h.run() |
58 HGWEBDIR | 58 HGWEBDIR |
59 chmod 755 hgwebdir.cgi | 59 chmod 755 hgwebdir.cgi |
60 | 60 |
61 declare -x DOCUMENT_ROOT="/var/www/hg" | 61 DOCUMENT_ROOT="/var/www/hg"; export DOCUMENT_ROOT |
62 declare -x GATEWAY_INTERFACE="CGI/1.1" | 62 GATEWAY_INTERFACE="CGI/1.1"; export GATEWAY_INTERFACE |
63 declare -x HTTP_ACCEPT="text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5" | 63 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 |
64 declare -x HTTP_ACCEPT_CHARSET="ISO-8859-1,utf-8;q=0.7,*;q=0.7" | 64 HTTP_ACCEPT_CHARSET="ISO-8859-1,utf-8;q=0.7,*;q=0.7"; export HTTP_ACCEPT_CHARSET |
65 declare -x HTTP_ACCEPT_ENCODING="gzip,deflate" | 65 HTTP_ACCEPT_ENCODING="gzip,deflate"; export HTTP_ACCEPT_ENCODING |
66 declare -x HTTP_ACCEPT_LANGUAGE="en-us,en;q=0.5" | 66 HTTP_ACCEPT_LANGUAGE="en-us,en;q=0.5"; export HTTP_ACCEPT_LANGUAGE |
67 declare -x HTTP_CACHE_CONTROL="max-age=0" | 67 HTTP_CACHE_CONTROL="max-age=0"; export HTTP_CACHE_CONTROL |
68 declare -x HTTP_CONNECTION="keep-alive" | 68 HTTP_CONNECTION="keep-alive"; export HTTP_CONNECTION |
69 declare -x HTTP_HOST="hg.omnifarious.org" | 69 HTTP_HOST="hg.omnifarious.org"; export HTTP_HOST |
70 declare -x HTTP_KEEP_ALIVE="300" | 70 HTTP_KEEP_ALIVE="300"; export HTTP_KEEP_ALIVE |
71 declare -x 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" | 71 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 |
72 declare -x OLDPWD | 72 PATH="/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin"; export PATH |
73 declare -x PATH="/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin" | 73 PATH_INFO="/"; export PATH_INFO |
74 declare -x PATH_INFO="/" | 74 PATH_TRANSLATED="/var/www/hg/index.html"; export PATH_TRANSLATED |
75 declare -x PATH_TRANSLATED="/var/www/hg/index.html" | 75 PWD="/home/hopper/hg_public"; export PWD |
76 declare -x PWD="/home/hopper/hg_public" | 76 QUERY_STRING=""; export QUERY_STRING |
77 declare -x QUERY_STRING="" | 77 REMOTE_ADDR="127.0.0.2"; export REMOTE_ADDR |
78 declare -x REMOTE_ADDR="127.0.0.2" | 78 REMOTE_PORT="44703"; export REMOTE_PORT |
79 declare -x REMOTE_PORT="44703" | 79 REQUEST_METHOD="GET"; export REQUEST_METHOD |
80 declare -x REQUEST_METHOD="GET" | 80 REQUEST_URI="/test/"; export REQUEST_URI |
81 declare -x REQUEST_URI="/test/" | 81 SCRIPT_FILENAME="/home/hopper/hg_public/test.cgi"; export SCRIPT_FILENAME |
82 declare -x SCRIPT_FILENAME="/home/hopper/hg_public/test.cgi" | 82 SCRIPT_NAME="/test"; export SCRIPT_NAME |
83 declare -x SCRIPT_NAME="/test" | 83 SCRIPT_URI="http://hg.omnifarious.org/test/"; export SCRIPT_URI |
84 declare -x SCRIPT_URI="http://hg.omnifarious.org/test/" | 84 SCRIPT_URL="/test/"; export SCRIPT_URL |
85 declare -x SCRIPT_URL="/test/" | 85 SERVER_ADDR="127.0.0.1"; export SERVER_ADDR |
86 declare -x SERVER_ADDR="127.0.0.1" | 86 SERVER_ADMIN="eric@localhost"; export SERVER_ADMIN |
87 declare -x SERVER_ADMIN="eric@localhost" | 87 SERVER_NAME="hg.omnifarious.org"; export SERVER_NAME |
88 declare -x SERVER_NAME="hg.omnifarious.org" | 88 SERVER_PORT="80"; export SERVER_PORT |
89 declare -x SERVER_PORT="80" | 89 SERVER_PROTOCOL="HTTP/1.1"; export SERVER_PROTOCOL |
90 declare -x SERVER_PROTOCOL="HTTP/1.1" | 90 SERVER_SIGNATURE="<address>Apache/2.0.53 (Fedora) Server at hg.omnifarious.org Port 80</address>\; export SERVER_SIGNATURE |
91 declare -x SERVER_SIGNATURE="<address>Apache/2.0.53 (Fedora) Server at hg.omnifarious.org Port 80</address>\ | |
92 " | 91 " |
93 declare -x SERVER_SOFTWARE="Apache/2.0.53 (Fedora)" | 92 SERVER_SOFTWARE="Apache/2.0.53 (Fedora)"; export SERVER_SOFTWARE |
94 ./hgweb.cgi >page1 2>&1 ; echo $? | 93 ./hgweb.cgi >page1 2>&1 ; echo $? |
95 ./hgwebdir.cgi >page2 2>&1 ; echo $? | 94 ./hgwebdir.cgi >page2 2>&1 ; echo $? |
96 PATH_INFO="/test/" | 95 PATH_INFO="/test/" |
97 PATH_TRANSLATED="/var/something/test.cgi" | 96 PATH_TRANSLATED="/var/something/test.cgi" |
98 REQUEST_URI="/test/test/" | 97 REQUEST_URI="/test/test/" |