[PATCH 2 of 4] Create a test to make sure old CGI scripts will still work

Thomas Arendsen Hein thomas at intevation.de
Fri Jun 30 06:43:00 CDT 2006


* Eric Hopper <hopper at omnifarious.org> [20060630 04:20]:
> # Node ID 589474a1dc3637f6f16a8da9f7dad8cdd9cd6f7f
> Create a test to make sure old CGI scripts will still work.
> 
> --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
> +++ b/tests/test-oldcgi	Thu Jun 29 18:31:17 2006 -0700
> +declare -x DOCUMENT_ROOT="/var/www/hg"
> +declare -x PATH="/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin"
> +declare -x PATH_INFO="/"

declare -x doesn't work on plain sh, I have a patch for this.

Changing $PATH isn't good if python isn't installed in the default
location, I have a patch for this, too.

> +./hgweb.cgi >page1 2>&1 ; echo $?
> +./hgwebdir.cgi >page2 2>&1 ; echo $?

Here is a third test needed with PATH_INFO pointing to the repo,
i.e. /test/

This would show that the hgwebdir index page works, but not the
repository pages. Neither with old cgi, nor with hg serve.

Thomas

-- 
Email: thomas at intevation.de
http://intevation.de/~thomas/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.selenic.com/pipermail/mercurial/attachments/20060630/c5d9dccb/attachment.pgp


More information about the Mercurial mailing list