You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by Stas Bekman <st...@stason.org> on 2004/12/20 05:18:34 UTC
Apache-TestItSelf and Apache-TestMe
Finally I've polished and committed the first bits of Apache-TestItSelf,
which is used to test that A-T's various config options actually work and
that a new fix to one problem doesn't create a new one. At the moment
there are just a few tests, but I'm going to write new ones as I discover
problems and invite you to do the same.
In order to keep the A-T's own test suite intact, I've created a new
Apache-TestMe subproject, which contains solely tests to reproduce various
problems (think geoff's bug skeleton). Originally I thought to just dump
things into A-T's test suite, but then decided that it may break or
complicate things.
Regardless, the Apache-TestItSelf can be used to run any A-T based test
suite, as the following extract from Apache-TestItSelf/README explains.
The only inconvenience at the moment is that the config files include
hardcoded paths, (since each one of us has apache/modperl installed at
different locations), so I've created sample/ for you to copy away and
adjust to reflect your setups.
Apache-TestItSelf/lib/MyTest/Util.pm contains all kind of wrappers, which
eventually should be polished into a nice API, but for now there are just
that, wrappers to avoid dups.
README:
This test suite tests various Apache-Test setups (i.e. whether the
configuration works correctly), something that can't be tested with
the normal run-time test suite.
1) first of all move into Apache-TestItSelf
% chdir Apache-TestItSelf
2) now choose which test suite to run again, to test whether some
changes in A-T break its config, run 2a. But if the config testing
coverage is not complete, try other test suites and then try to
re-create this problem in 2a.
You will need to adjust config files under sample/ to reflect the
location of your preinstalled httpd and mod_perl files.
a. Apache-Test config test suite
% t/TEST -config sample/apache_test_config.pm
this runs against the test suite under:
Apache-Test/Apache-TestItSelf/Apache-TestMe/t
it's the same as calling:
% t/TEST -base ~/apache.org/Apache-Test/Apache-TestItSelf/Apache-TestMe/t \
-config sample/apache_test_config.pm
b. Apache-Test
assuming that Apache-Test is checked out under
~/apache.org/Apache-Test, the following will run the tests against the
Apache-Test test suite
% t/TEST -base ~/apache.org/Apache-Test \
-config sample/apache_test_config.pm
c. modperl-2.0
assuming that modperl-2.0 is checked out under
~/apache.org/modperl-2.0, the following will run the tests against the
modperl-2.0 test suite
% t/TEST -base ~/apache.org/mp2-svn \
-config sample/modperl2_testitself_config.pm httpd_arg.t interactive.t
d. 3rd party modules ###
assuming that Apache-VMonitor-2.0 is checked out under
~/work/modules/Apache-VMonitor-2.0, the following will run the tests
against the Apache-VMonitor-2.0 test suite. of course any other 3rd
party module should do.
% t/TEST -base ~/work/modules/Apache-VMonitor-2.0 \
-config sample/apache2_modules_testitself_config.pm
--
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org