openbsd-ports/www/p5-Apache-Test/patches/patch-lib_Apache_TestRun_pm
simon c45180b4b7 Update to version 1.30 and while here make it actually work with our
httpd(8) by adding chroot(2) support, disabled by default as expected
with this module.
Otherwise no user would be able to run his tests without the effort of
setting up a chroot(2) environment with Perl and everything else, and
obviously also running them as root.

To enable chroot set the APACHE_TEST_CHROOT environment variable or
start the tests with `./t/TEST -chroot 1'.

I'm also taking over maintainership.

Tested by and looks good to landry@
2008-04-30 19:25:23 +00:00

18 lines
982 B
Plaintext

$OpenBSD: patch-lib_Apache_TestRun_pm,v 1.1 2008/04/30 19:25:23 simon Exp $
--- lib/Apache/TestRun.pm.orig Tue Apr 29 22:44:39 2008
+++ lib/Apache/TestRun.pm Tue Apr 29 22:46:51 2008
@@ -1431,9 +1431,10 @@ to a configuration file C<Apache::TestConfigData>. Th
will then be used in setting these options for subsequent uses of
C<Apache-Test> unless temprorarily overridden, either by setting the
appropriate environment variable (C<APACHE_TEST_HTTPD>,
-C<APACHE_TEST_APXS>, C<APACHE_TEST_PORT>, C<APACHE_TEST_USER>, and
-C<APACHE_TEST_GROUP>) or by giving the relevant option (C<-httpd>,
-C<-apxs>, C<-port>, C<-user>, and C<-group>) when the C<TEST> script
+C<APACHE_TEST_APXS>, C<APACHE_TEST_PORT>, C<APACHE_TEST_USER>,
+C<APACHE_TEST_GROUP>, and C<APACHE_TEST_CHROOT>) or by giving the
+relevant option (C<-httpd>, C<-apxs>, C<-port>, C<-user>, C<-chroot>,
+and C<-group>) when the C<TEST> script
is run.
To avoid either using previous persistent configurations or saving