11
provide $Apache::TestUtil::DEBUG_OUTPUT as target for t_debug()
12
statements, defaulting to STDOUT. this allows for changing
13
t_debug() to STDERR when using functions like t_write_file()
14
from within handler() server-side tests. [Geoffrey Young]
16
adjust need_module()/have_module() to not try to require a module if
17
it was explicitly passed with a .c extension. in certain cases this
18
prevents a fatal error (e.g. trying to call
19
Apache::Test::have_module('mod_alias.c') from the <Perl>
24
=item 1.24 - May 20, 2005
26
When adding TypesConfig directives (either inherited from the global
27
httpd.conf or from the locally generated mime.types) make sure to
28
enclose it in <IfModule mod_mime.c>..</IfModule>, since mod_mime might
29
be unavailable. [Stas]
33
=item 1.23 - May 3, 2005
35
Fix Apache::TestRequest::hostport to return the default host:port
36
string if $Apache::TestRequest::Module is 'default' or undef [Stas]
38
Fix Apache::TestRequest::module2url to allow passing '' as a URI
41
tweaks to Apache::TestClient to better deal with corrupted responses
42
when LWP is not available. [Stas]
46
=item 1.22 - April 14, 2005
48
******************** IMPORTANT ********************
49
this version of Apache-Test does not completely
50
configure mod_perl for mod_perl versions 1.99_21 or
51
earlier. Please read the below changes carefully.
52
***************************************************
54
remove Apache::TestConfig::modperl_2_inc_fixup(). Apache-Test
55
is no longer Apache2.pm aware - it will not configure mod_perl
56
support to look in Apache2/ automatically. [joes]
58
Add support for mp2's Apache:: -> Apache2:: rename [joes]
62
=item 1.21 - March 23, 2005
64
fix Apache::TestConfig (was missing 'use lib' before using
65
lib::import) [William McKee <william@knowmad.com>]
67
TestConfigPerl will now configure mod_perl last, giving mod_perl
68
highest priority throughout the httpd lifecycle. [Geoffrey Young]
70
Apache::TestConfig::untaint_path needs to remove empty entries in the
71
PATH list, since -T considers those tainted too. [Stas]
73
add Apache::TestHarnessPHP which allows for running client-side
74
scripts via php instead of perl. [Geoffrey Young]
78
=item 1.20 - January 22, 2005
80
instead of trying to match various custom server name variations (each
81
vendor seems to replace "Apache" in 'httpd -v' with their own name),
82
just try to match the "/x.y" in "Foo-Apache-Bar/x.y.z" to figure out
83
the server generation (rev). [Stas]
85
extend Apache::TestConfig::which() to search under perl's bin
86
directory (in the case of local perl install many utils get installed
87
there, but won't be in PATH). [Stas]
89
Apache::TestConfig::inherit_load_module handles .dll modules
90
(previously was only .so) [Stas]
92
Apache::TestConfig::should_skip_module now works with regex
97
=item 1.19 - January 5, 2005
99
Test for module.c instead of module.so for IfModule in
100
find_and_load_module [Chia-Liang Kao <chialiang gmail.com>]
102
Apache-Test/META.yml is excluded from mp2 distro to make PAUSE indexer
103
happy, but then perl Makefile.PL complains about a missing META.yml,
104
so autogenerate it if it wasn't in the distro [Stas]
108
=item 1.18 - December 23, 2004
110
fix a bug in A-T config generation, when a vhost entry was in
111
autogenerated httpd.conf (e.g. coming from .pm file) and another from
112
extra.conf.in. We used to have a ports collision, since extra.conf
113
wasn't reparsed and the same port was getting assigned to more than
114
one vhost entry, preventing server startup:
115
default_ VirtualHost overlap on port 8530, the first has precedence
116
(98)Address already in use: make_sock: could not bind to address
117
0.0.0.0:8530 no listening sockets available, shutting down
118
could be reproduced with t/TEST -conf followed by t/TEST -maxclients 1
119
in the mp2 test suite (or the new Apache-TestMe test suite, which now
120
includes a special setup for this bug). [Stas]
122
new TestConfig wrapper find_and_load_module [Chia-Liang Kao <chialiang
125
add Apache-TestItSelf and Apache-TestMe sub-projects. [Stas]
127
add various straps to aid the new Apache-TestItSelf sub-project, which
128
is used to test A-T config options [Stas]
130
avoid entering endless loops when interactive config is used, by
131
restarting the test suite with an explicit selected arguments for
132
-httpd (and optionally -apxs) [Stas]
134
META.yml is now locally maintained. we need to tell PAUSE indexer not
135
to try to index HTTP::Request::Common and warnings packages, which
136
happen to be used by A-T [Stas]
140
=item 1.17 - December 11, 2004
142
Apache::TestHandler: need to load Apache::RequestIO for mp2 for puts()
145
new Apache::TestConfig wrapper untaint_path() [Randy Kobes]
147
fix the config thaw() functionality (when top_dir wasn't in @INC the
148
saved config won't be loaded and tests will blow) [Stas]
150
new wrapper Apache::TestRequest::module2url to simplify handling of
151
vhosts in the client. ["Christopher H. Laco" <apache-test
154
resolve -T taint issues: [Stas]
155
- untaint $cmd in Apache::TestConfig::open_cmd
156
- fix the tainting of @INC (by untaintinig top_dir variable)
158
require Cwd 2.06 or higher (to solve File::Spec::rel2abs problems
159
under -T). Enforce the modules version requirements for those who
160
aren't running under CPAN/CPANPLUS shell) [Stas]
162
Apache::TestTrace: don't export by default the 'todo' utility's symbol
163
since it collides with Test::More [Stas]
165
Tweak the handling of mp2 source build case in
166
Apache::TestConfig::httpd_config(), apparently mp2 source build
167
doesn't always know where httpd/apxs are, so we need to give a better
168
error message in this particular case. [Stas]
170
Add cookie jar tests ["Christopher H. Laco" <apache-test
173
Don't run interactive prompts when STDIN is closed [Stas]
175
Add LockFile directive in the autogenerated httpd.conf, which points
176
to t/logs, to handle the case where LockFile is hardcoded at compile
177
time to some other directory on the system. [Stas]
181
=item 1.16 - November 9, 2004
183
launder the require()d custom config filename to make -T happy
184
[Torsten F�rtsch <torsten.foertsch gmx.net>]
186
added Apache::TestRunPHP and Apache::TestConfigPHP classes,
187
which provide a framework for server-side testing via PHP scripts
190
fix problem with multiple all.t files where only the final
191
file was being run through the test harness. [Geoffrey Young]
193
Documented that redirection does not work with "POST" requests in
194
Apache::TestRequest unless LWP is installed. [David Wheeler]
196
Separated the setting of the undocumented $RedirectOK package
197
variable by users of Apache::TestRequest from when it is set
198
internally by passing the "requests_redirectable" parameter to
199
the user_agent() method. This allows users to override the
200
behavior set by the user_agent() method without replacing it.
205
=item 1.15 - October 22, 2004
207
add need_php4() and have_php4() which will return true when mod_php4
208
is available. also, tidy up need_php() and have_php() for PHP4 on
209
Apache 2.0. [Joe Orton]
211
add new test_config make target, equivalent to t/TEST -conf,
212
and make it a prerequisite for the cmodules make target. now
213
you can 'make cmodules' to build the things in c-modules/
214
without running t/TEST -conf first. [Geoffrey Young]
216
add -withtestmore import action, which allows Test::More >= 0.49
217
to replace Test.pm as the engine for server-side tests
220
add automatic core dump backtrace generation in t/REPORT if
221
Devel::GDB is installed [Gozer]
223
add 'testcover' make target for running tests with Devel::Cover
228
=item 1.14 - October 12, 2004
230
improve the same_interpreter framework to handle response failures
231
while trying to init and later find out the same interpreter. [Stas]
233
make sure that 'make distclean' cleans all the autogenerated files
236
make sure that if -maxclients option is passed on the command line,
237
minclients will never be bigger than that value [Stas]
239
add -one-process runtime argument, which will start the server
240
in single-server mode (httpd -X in Apache 1.X or
241
httpd -D ONE_PROCESS in 2.X) [Geoffrey Young]
243
In open_cmd, sanitize PATH instead of clearing it [Gozer]
245
Allow / \ and \\ path delimiters in SKIP file [Markus Wichitill
248
Added an apxs query cache for improved test performance [Gozer]
250
run_tests make target no longer invokes t/TEST -clean, making it
251
possible to save a few development cycles when a full cleanup is
252
not required between runs. [Geoffrey Young]
254
Apache::TestSmoke imrovements: [Stas]
255
o the command line option -iterations=N should always be respected
256
(previously it was internally overriden for order!='random').
257
o since IPC::Run3 broke the Ctrl-C handler, we started to loose any
258
intermediate results, should the run be aborted. So for now, try to
259
always store those results in the temp file:
260
smoke-report...$iter.temp
262
fix 'require blib' in scripts to also call 'blib->import', required to
263
have an effect under perl 5.6.x. [Stas]
265
don't allow running an explicit 'perl Makefile.PL', when Apache-Test
266
is checked out into the modperl-2.0 tree, since it then decides that
267
it's a part of the modperl-2.0 build and will try to use modperl
268
httpd/apxs arguments which could be unset or wrong [Stas]
270
Fix skip test suite functionality in the interactive configuration
273
s/die/CORE::die/ after exec() to avoid warnings (and therefore
274
failures) when someone overrides CORE::die when using Apache-Test
275
[William McKee, Stas]
277
Overrode Module::Build's "testcover" action in Apache::TestMB to
278
prevent the Apache::Test sticky preference files from being included
279
in the coverage report. [David]
284
=item 1.13 - Aug 20, 2004
286
move the custom config code into Apache::TestConfig, split the config
287
object creation in 2 parts - first not requiring the knowledge of
288
httpd location, the second requiring one, refactor the custom config
289
interactive prompting into the second phase, if failed to find
290
httpd. Reshuffle the code to run first bits not requiring the
291
knowledge of httpd location. [Stas]
293
fix Apache::TestCommonPost::lwp_do to work with LWP 5.800
294
($res->content() doesn't allow CODE refs anymore, instead used
295
content_ref to avoid huge strings copy) [Stas]
297
add @PHP_MODULE@ extra.conf.in substitution variable, which selects
298
mod_php4 or mod_php5 as appropriate. [Geoffrey Young]
300
the have() function was removed entirely - use need() instead.
303
add need() and need_* variant functions (need_module(), need_apache(),
304
etc) for use specifically with plan() to decide whether or not a test
305
should run. have_* variants (have_module(), have_apache(), etc) are
306
now specifically for use outside of plan(), although they can continue
307
to be used within plan() without fear of current tests breaking.
310
add need_php() and have_php() which will return true when either
311
mod_php4 or mod_php5 are available, providing functionality similar to
312
need_cgi() and have_cgi().
315
Add APACHE_TEST_EXTRA_ARGS make variable to all invocations to t/TEST
316
to allow passing extra arguments from the command line. [Gozer]
318
When APACHE_TEST_NO_STICKY_PREFERENCES=1 is used don't even try to
319
interactively configure the server, as we don't save any config it was
320
entering an infinite loop. [Stas]
322
If a directory t/lib exists from where the tests are run, adjust
323
@INC so that this directory is added when running the tests,
324
both within t/TEST and within t/conf/modperl_inc.pl.
325
This allows inclusion of modules specific to the tests that
326
aren't intended to be installed. [Stas, Randy]
328
make a special case for threaded mpm configuration, to ensure that
329
unless maxclients was specified, MaxClients will be exactly twice
330
bigger than ThreadsPerChild (minclients), since if we don't do that,
331
Apache will reduce MaxClients to the same value as
332
ThreadsPerChild. [Stas]
334
Renamed generate_test_script() to generate_script() in Apache::TestMB
335
to match the naming convention used in Apache::TestMM and elsewhere.
338
Apache::TestMB now only prints the "Generating test running script"
339
message if verbosity is enabled (e.g., by passing --verbose when
340
executing Build.PL). [David]
342
Fixed the "requests_redirectable" parameter to
343
Apache::TestRequest::user_agent() so that it works as docmented when
344
passed a negative value. [Boris Zentner]
346
Documented support for passing an array reference to the
347
"requests_redirectable" parameter to Apache::TestRequest::user_agent()
348
to be passed to LWP::UserAgent if LWP ist installed. [David]
351
=item 1.12 - June 28, 2004
353
Force projects that use Apache::TestReportPerl to implement
354
report_to() if they use t/REPORT in their projects. [Stas]
356
Add redirect tests [David Wheeler <david@kineticode.com>]
358
add -no-httpd runtime option to allow tests to run without configuring,
359
starting, or stopping Apache. this essentially provides a direct
360
Test::Harness interface through t/TEST, useful for running single tests
361
that do not depend on Apache. [Geoffrey Young]
363
Add support for Module::Build, with a new module: Apache::TestMB (a
364
"clone" of Apache::TestMM for ExtUtils::MakeMaker). [David Wheeler
365
<david@kineticode.com>]
367
switch the order of arguments in t_cmp() and t_is_equal() so that
368
the order matches Test::More::is() and other Test::More functions.
369
the new call is: t_cmp($received, $expected, $comment); support
370
for $expected as the first argument marked as deprecated and will
371
be removed in the course of the next few release cycles.
374
add skip_reason() to Apache::Test, which provides a mechanism for
375
user-specified skip messages [Geoffrey Young]
377
Tweak Apache::TestRun to support test filenames starting with
378
/(.\\)?t\\/ prefixes, windows style (needed for t/SMOKE) [Steve Hay]
9
382
=item 1.11 - May 21, 2004
11
384
if we fail to match the Apache revision (which is OK at the early