~ubuntu-branches/ubuntu/edgy/libapache2-mod-perl2/edgy

« back to all changes in this revision

Viewing changes to Apache-Test/Changes

  • Committer: Bazaar Package Importer
  • Author(s): Andres Salomon
  • Date: 2005-08-12 01:40:38 UTC
  • mfrom: (1.1.2 upstream) (2.1.1 sarge)
  • Revision ID: james.westby@ubuntu.com-20050812014038-gjigefs55pqx4qc8
Tags: 2.0.1-3
Grr.  Really include perl.conf file; it got lost due to diff not
wanting to add an empty file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 
7
7
=over 3
8
8
 
 
9
=item 1.25-dev
 
10
 
 
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]
 
15
 
 
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>
 
20
sections. [Stas]
 
21
 
 
22
 
 
23
 
 
24
=item 1.24 - May 20, 2005
 
25
 
 
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]
 
30
 
 
31
 
 
32
 
 
33
=item 1.23 - May 3, 2005
 
34
 
 
35
Fix Apache::TestRequest::hostport to return the default host:port
 
36
string if $Apache::TestRequest::Module is 'default' or undef [Stas]
 
37
 
 
38
Fix Apache::TestRequest::module2url to allow passing '' as a URI
 
39
path. [Stas]
 
40
 
 
41
tweaks to Apache::TestClient to better deal with corrupted responses
 
42
when LWP is not available. [Stas]
 
43
 
 
44
 
 
45
 
 
46
=item 1.22 - April 14, 2005
 
47
 
 
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
    ***************************************************
 
53
 
 
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]
 
57
 
 
58
Add support for mp2's Apache:: -> Apache2:: rename [joes]
 
59
 
 
60
 
 
61
 
 
62
=item 1.21 - March 23, 2005
 
63
 
 
64
fix Apache::TestConfig (was missing 'use lib' before using
 
65
lib::import) [William McKee <william@knowmad.com>]
 
66
 
 
67
TestConfigPerl will now configure mod_perl last, giving mod_perl
 
68
highest priority throughout the httpd lifecycle.  [Geoffrey Young]
 
69
 
 
70
Apache::TestConfig::untaint_path needs to remove empty entries in the
 
71
PATH list, since -T considers those tainted too. [Stas]
 
72
 
 
73
add Apache::TestHarnessPHP which allows for running client-side
 
74
scripts via php instead of perl.  [Geoffrey Young]
 
75
 
 
76
 
 
77
 
 
78
=item 1.20 - January 22, 2005
 
79
 
 
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]
 
84
 
 
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]
 
88
 
 
89
Apache::TestConfig::inherit_load_module handles .dll modules
 
90
(previously was only .so) [Stas]
 
91
 
 
92
Apache::TestConfig::should_skip_module now works with regex
 
93
patterns. [Stas]
 
94
 
 
95
 
 
96
 
 
97
=item 1.19 - January 5, 2005
 
98
 
 
99
Test for module.c instead of module.so for IfModule in
 
100
find_and_load_module [Chia-Liang Kao <chialiang gmail.com>]
 
101
 
 
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]
 
105
 
 
106
 
 
107
 
 
108
=item 1.18 - December 23, 2004
 
109
 
 
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]
 
121
 
 
122
new TestConfig wrapper find_and_load_module [Chia-Liang Kao <chialiang
 
123
gmail.com>]
 
124
 
 
125
add Apache-TestItSelf and Apache-TestMe sub-projects. [Stas]
 
126
 
 
127
add various straps to aid the new Apache-TestItSelf sub-project, which
 
128
is used to test A-T config options [Stas]
 
129
 
 
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]
 
133
 
 
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]
 
137
 
 
138
 
 
139
 
 
140
=item 1.17 - December 11, 2004
 
141
 
 
142
Apache::TestHandler: need to load Apache::RequestIO for mp2 for puts()
 
143
to work [Stas]
 
144
 
 
145
new Apache::TestConfig wrapper untaint_path() [Randy Kobes]
 
146
 
 
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]
 
149
 
 
150
new wrapper Apache::TestRequest::module2url to simplify handling of
 
151
vhosts in the client. ["Christopher H. Laco" <apache-test
 
152
chrislaco.com>]
 
153
 
 
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)
 
157
 
 
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]
 
161
 
 
162
Apache::TestTrace: don't export by default the 'todo' utility's symbol
 
163
since it collides with Test::More [Stas]
 
164
 
 
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]
 
169
 
 
170
Add cookie jar tests ["Christopher H. Laco" <apache-test
 
171
chrislaco.com>]
 
172
 
 
173
Don't run interactive prompts when STDIN is closed [Stas]
 
174
 
 
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]
 
178
 
 
179
 
 
180
 
 
181
=item 1.16 - November 9, 2004
 
182
 
 
183
launder the require()d custom config filename to make -T happy
 
184
[Torsten F�rtsch <torsten.foertsch gmx.net>]
 
185
 
 
186
added Apache::TestRunPHP and Apache::TestConfigPHP classes,
 
187
which provide a framework for server-side testing via PHP scripts
 
188
[Geoffrey Young]
 
189
 
 
190
fix problem with multiple all.t files where only the final
 
191
file was being run through the test harness.  [Geoffrey Young]
 
192
 
 
193
Documented that redirection does not work with "POST" requests in
 
194
Apache::TestRequest unless LWP is installed. [David Wheeler]
 
195
 
 
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.
 
201
[David Wheeler]
 
202
 
 
203
 
 
204
 
 
205
=item 1.15 - October 22, 2004
 
206
 
 
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]
 
210
 
 
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]
 
215
 
 
216
add -withtestmore import action, which allows Test::More >= 0.49
 
217
to replace Test.pm as the engine for server-side tests
 
218
[Geoffrey Young]
 
219
 
 
220
add automatic core dump backtrace generation in t/REPORT if
 
221
Devel::GDB is installed [Gozer]
 
222
 
 
223
add 'testcover' make target for running tests with Devel::Cover
 
224
[Geoffrey Young]
 
225
 
 
226
 
 
227
 
 
228
=item 1.14 - October 12, 2004
 
229
 
 
230
improve the same_interpreter framework to handle response failures
 
231
while trying to init and later find out the same interpreter. [Stas]
 
232
 
 
233
make sure that 'make distclean' cleans all the autogenerated files
 
234
[Stas]
 
235
 
 
236
make sure that if -maxclients option is passed on the command line,
 
237
minclients will never be bigger than that value [Stas]
 
238
 
 
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]
 
242
 
 
243
In open_cmd, sanitize PATH instead of clearing it [Gozer]
 
244
 
 
245
Allow / \ and \\ path delimiters in SKIP file [Markus Wichitill
 
246
<mawic@gmx.de>]
 
247
 
 
248
Added an apxs query cache for improved test performance [Gozer]
 
249
 
 
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] 
 
253
 
 
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
 
261
 
 
262
fix 'require blib' in scripts to also call 'blib->import', required to
 
263
have an effect under perl 5.6.x. [Stas]
 
264
 
 
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]
 
269
 
 
270
Fix skip test suite functionality in the interactive configuration
 
271
phase [Stas]
 
272
 
 
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]
 
276
 
 
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]
 
280
 
 
281
 
 
282
 
 
283
 
 
284
=item 1.13 - Aug 20, 2004
 
285
 
 
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]
 
292
 
 
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]
 
296
 
 
297
add @PHP_MODULE@ extra.conf.in substitution variable, which selects
 
298
mod_php4 or mod_php5 as appropriate.  [Geoffrey Young]
 
299
 
 
300
the have() function was removed entirely - use need() instead.
 
301
[Geoffrey Young]
 
302
 
 
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.
 
308
[Geoffrey Young]
 
309
 
 
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().
 
313
[Geoffrey Young]
 
314
 
 
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]
 
317
 
 
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]
 
321
 
 
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]
 
327
 
 
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]
 
333
 
 
334
Renamed generate_test_script() to generate_script() in Apache::TestMB
 
335
to match the naming convention used in Apache::TestMM and elsewhere.
 
336
[David]
 
337
 
 
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]
 
341
 
 
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]
 
345
 
 
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]
 
349
 
 
350
 
 
351
=item 1.12 - June 28, 2004
 
352
 
 
353
Force projects that use Apache::TestReportPerl to implement
 
354
report_to() if they use t/REPORT in their projects. [Stas]
 
355
 
 
356
Add redirect tests [David Wheeler <david@kineticode.com>]
 
357
 
 
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]
 
362
 
 
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>]
 
366
 
 
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.
 
372
[Geoffrey Young]
 
373
 
 
374
add skip_reason() to Apache::Test, which provides a mechanism for
 
375
user-specified skip messages [Geoffrey Young]
 
376
 
 
377
Tweak Apache::TestRun to support test filenames starting with
 
378
/(.\\)?t\\/ prefixes, windows style (needed for t/SMOKE) [Steve Hay]
 
379
 
 
380
 
 
381
 
9
382
=item 1.11 - May 21, 2004
10
383
 
11
384
if we fail to match the Apache revision (which is OK at the early