1 2009-09-06 Micah Cowan <micah@cowan.name>
3 * WgetTest.pm.in (_setup): Don't expect error codes from
4 _setup_server; none are returned.
5 (quotechar, _show_diff): Added facilities for expounding on where
6 output didn't match expectations.
7 (_verify_download): Use _show_diff.
9 * FTPTest.pm (_setup_server): Pass value of server_behavior to
10 FTPServer initialization.
12 * Test-ftp-pasv-fail.px: Added.
13 * run-px, Makefile.am (EXTRA_DIST): Added Test-ftp-pasv-fail.px.
15 * WgetTest.pm.in: Added "server_behavior" to the set of accepted
16 initialization values.
17 * FTPServer.pm (__open_data_connection): Add "server_behavior" to
18 the set of accepted initialization values.
19 (run): Honor the 'fail_on_pasv' server behavior setting, to
20 trigger the Wget getftp glitch.
22 2009-09-05 Micah Cowan <micah@cowan.name>
24 * Test-ftp-recursive.px: Added.
25 * run-px, Makefile.am (EXTRA_DIST): Added Test-ftp-recursive.px.
27 * FTPTest.pm (_setup_server): Don't construct the "input"
28 directory's contents, just pass the URLs structure to
30 * FTPServer.pm: Rewrote portions, so that the server now uses the
31 information from the %urls hash directly, rather than reading from
32 real files. Added an FTPPaths package to the file.
34 2009-09-04 Micah Cowan <micah@cowan.name>
36 * WgetTest.pm.in (run): Error-checking improvements.
38 2009-09-02 Micah Cowan <micah@cowan.name>
40 * Makefile.am (unit-tests): explicit dependency is
41 unnecessary (and harmful, as it overrides the automatic one).
43 2009-09-01 Micah Cowan <micah@cowan.name>
45 * Makefile.am (../src/libunittest.a): Make it a phony target,
46 so we always make sure to get up-to-date unit-test runs.
48 2009-09-01 Steven Schubiger <stsc@member.fsf.org>
50 * Makefile.am: Add Test-cookies.px, Test-cookies-401.px
51 and Test-restrict-ascii.px to EXTRA_DIST.
53 2009-08-31 Steven Schubiger <stsc@member.fsf.org>
55 * Makefile.am: Add Test-k.px to EXTRA_DIST.
57 2009-08-29 Steven Schubiger <stsc@member.fsf.org>
59 * run-px: Add Test-k.px to the list.
61 * Test-k.px: Test escaping of semicolons in local file strings.
63 2009-08-27 Micah Cowan <micah@cowan.name>
65 * WgetTest.pm.in (run): Shift the errcode right by 8 binary places.
67 * Test--spider-fail.px, Test--spider-r--no-content-disposition.px,
68 Test--spider-r--no-content-disposition-trivial.px,
69 Test--spider-r-HTTP-Content-Disposition.px, Test--spider-r.px,
70 Test-O-nonexisting.px, Test-cookies-401.px,
71 Test-nonexisting-quiet.px: Adjusted "expected error code"; Wget's
72 exit codes have changed.
74 2009-08-27 Micah Cowan <micah@cowan.name>
76 * run-px: Added Test-cookies.px, Test-cookies-401.px
78 * Test-cookies.px: Basic testing to make sure Wget doesn't send
79 cookies; no path/domain checking.
81 * Test-cookies.px: Test to make sure Wget heeds cookies when they
82 are sent with a 401 response (#26775).
84 * HTTPServer.pm (send_response): Don't try to substitute port in
85 response body, if there isn't one.
86 (verify_request_headers): Avoid uninitialized warning when an
87 expected header isn't provided by Wget.
89 2009-07-27 Micah Cowan <micah@cowan.name>
91 * Test-restrict-ascii.px: New.
93 * run-px: Added Test-restrict-ascii.px.
95 2009-07-26 Micah Cowan <micah@cowan.name>
97 * Test-ftp-iri.px, Test-ftp-iri-fallback.px,
98 Test-ftp-iri-recursive.px, Test-ftp-iri-disabled.px,
99 Test-idn-cmd.px, Test-idn-robots.px: Adjust wget invocations,
100 replacing --locale with --local-encoding.
102 2009-07-07 Steven Schubiger <stsc@member.fsf.org>
104 * Makefile.am: Add IDN/IRI test files and Test-meta-robots.px
107 2009-07-05 Micah Cowan <micah@cowan.name>
109 * Test-meta-robots.px: Added.
111 * run-px: Add Test-meta-robots.px to the list.
113 2009-07-03 Micah Cowan <micah@cowan.name>
115 * Test-ftp-iri-disabled.px, Test-iri-disabled.px:
116 --iri=no --> --no-iri
118 2009-07-01 Micah Cowan <micah@cowan.name>
120 * HTTPServer.pm (send_response): Invocation of
121 verify_request_headers, to support testing of Wget-sent header
123 (verify_request_headers): Added.
125 * Test-iri.px: Added verification checks for Referer values.
127 2009-06-29 Micah Cowan <micah@cowan.name>
129 * WgetTest.pm.in (_cleanup): Allow cleanup of test directories to
130 be skipped at user discretion.
132 * run-px, Test-iri-percent.px, Test-ftp-iri-recursive.px: Added
133 test for percent-coded value preservation, FTP recursion when IRI
136 2008-12-04 Micah Cowan <micah@cowan.name> (not copyrightable)
138 * run-px, Test-idn-robots.px: Added test for robots-file
141 * Test-idn-cmd.px, Test-idn-meta.px, Test-idn-headers.px:
144 2008-11-26 Micah Cowan <micah@cowan.name> (not copyrightable)
146 * Test-ftp-iri-disabled.px, Test-ftp-iri-fallback.px,
147 Test-ftp-iri.px, Test-idn-cmd.px, Test-idn-headers.px,
148 Test-idn-meta.px, Test-iri-disabled.px,
149 Test-iri-forced-remote.px, Test-iri-list.px, Test-iri.px: More
150 module-scope warnings.
152 2009-06-14 Micah Cowan <micah@cowan.name>
154 * Makefile.am (EXTRA_DIST): Include all the tests, run-px, and
155 certs/, to make distcheck happy.
157 2009-06-11 Benjamin Wolsey <bwy@benjaminwolsey.de>
159 * Test-proxied-https-auth.px: Take an optional argument for the
160 top source directory, so we can find the cert and key.
162 * run-px: Provide the top source directory as an argument, so
163 scripts can find their way around.
165 2009-04-11 Steven Schubiger <stsc@member.fsf.org>
167 * run-px: Skip testing with real rc files by setting
168 SYSTEM_WGETRC and WGETRC to /dev/null.
170 2009-02-25 Benjamin Wolsey <bwy@benjaminwolsey.de>
172 * Makefile.am (run-px-tests): Ensure run-px is run from srcdir.
174 * run-px: Include modules from srcdir.
176 2008-11-25 Steven Schubiger <stsc@members.fsf.org>
178 * WgetTest.pm.in: Remove the magic interpreter line;
179 replace -w with lexical warnings.
181 2008-11-13 Steven Schubiger <stsc@members.fsf.org>
183 * FTPServer.pm, FTPTest.pm, HTTPServer.pm, HTTPTest.pm,
184 WgetTest.pm.in: Clean up leftover whitespace.
186 2008-11-12 Steven Schubiger <stsc@members.fsf.org>
188 * Test-auth-basic.px, Test-auth-no-challenge.px,
189 Test-auth-no-challenge-url.px, Test-c-full.px,
190 Test-c-partial.px, Test-c.px, Test-c-shorter.px,
191 Test-E-k-K.px, Test-E-k.px, Test-ftp.px,
192 Test-HTTP-Content-Disposition-1.px,
193 Test-HTTP-Content-Disposition-2.px,
194 Test-HTTP-Content-Disposition.px, Test-N-current.px,
195 Test-N-HTTP-Content-Disposition.px,
196 Test-N--no-content-disposition.px,
197 Test-N--no-content-disposition-trivial.px,
198 Test-N-no-info.px, Test--no-content-disposition.px,
199 Test--no-content-disposition-trivial.px, Test-N-old.px,
200 Test-nonexisting-quiet.px, Test-noop.px, Test-np.px,
201 Test-N.px, Test-N-smaller.px,
202 Test-O-HTTP-Content-Disposition.px, Test-O-nc.px,
203 Test-O--no-content-disposition.px,
204 Test-O--no-content-disposition-trivial.px,
205 Test-O-nonexisting.px, Test-O.px,
206 Test-proxy-auth-basic.px, Test-Restrict-Lowercase.px,
207 Test-Restrict-Uppercase.px,
208 Test--spider-fail.pxm, Test--spider.px,
209 Test--spider-r-HTTP-Content-Disposition.px,
210 Test--spider-r--no-content-disposition.px,
211 Test--spider-r--no-content-disposition-trivial.px,
212 Test--spider-r.px: Enforce lexically scoped warnings.
214 * Test-proxied-https-auth.px, run-px: Place use strict
217 2008-11-12 Steven Schubiger <stsc@members.fsf.org>
219 * FTPServer.pm, FTPTest.pm, HTTPServer.pm, HTTPTest.pm:
220 Remove the magic interpreter line, because it cannot be
221 used fully. Substitute -w with use warnings.
223 2008-11-11 Micah Cowan <micah@cowan.name>
225 * HTTPServer.pm (handle_auth): Allow testing of
228 * Test-auth-no-challenge.px, Test-auth-no-challenge-url.px:
231 * run-px: Add Test-auth-no-challenge.px,
232 Test-auth-no-challenge-url.px.
234 2008-11-07 Steven Schubiger <stsc@members.fsf.org>
236 * run-px: Use some colors for the summary part of the test
237 output to strengthen the distinction between a successful
240 2008-11-06 Steven Schubiger <stsc@members.fsf.org>
242 * run-px: When executing test scripts, invoke them with the
243 current perl executable name as determined by env.
245 2008-11-06 Micah Cowan <micah@cowan.name>
247 * run-px: Use strict (thanks Steven Schubiger!).
249 2008-09-09 Micah Cowan <micah@cowan.name>
251 * Test-idn-cmd.px: Added.
253 * run-px: Added Test-idn-cmd.px.
255 2008-08-28 Micah Cowan <micah@cowan.name>
257 * HTTPServer.pm (run): Allow distinguishing between hostnames,
258 when used as a proxy.
260 * Test-idn-headers.px, Test-idn-meta.px: Added.
262 * run-px: Added Test-idn-headers.px, Test-idn-meta.px.
264 * Test-proxy-auth-basic.px: Use the full URL, rather than just the
265 path (made necessary by the accompanying change to HTTPServer.pm).
267 2008-08-14 Xavier Saint <wget@sxav.eu>
269 * Test-iri-list.px : Fetch files from a remote list.
271 2008-08-03 Xavier Saint <wget@sxav.eu>
273 * Test-iri.px : HTTP recursive fetch for testing IRI support and
276 * Test-iri-disabled.px : Same file structure as Test-iri.px but with
279 * Test-iri-forced-remote.px : There's a difference between ISO-8859-1
280 and ISO-8859-15 for character 0xA4 (respectively currency sign and
281 euro sign). So with a forced ISO-8859-1 remote encoding, wget should
282 see 0xA4 as a currency sign and transcode it correctly in UTF-8 instead
283 of using the ISO-8859-15 given by the server.
285 * Test-ftp-iri.px : Give a file to fetch via FTP in a specific locale
286 and expect wget to fetch the file UTF-8 encoded.
288 * Test-ftp-iri-fallback.px : Same as above but wget should fallback on
289 locale encoding to fetch the file.
291 * Test-ftp-iri.px : Same as Test-ftp-iri.px but with IRI support
292 disabled. The UTF-8 encoded file should not be retrieved.
294 2008-06-22 Micah Cowan <micah@cowan.name>
296 * Test-proxied-https-auth.px: Shift exit code so it falls in the
297 lower bits, and actually fails when it should. Use dynamic port,
298 instead of static port. Only run the test if our Wget was built
301 * certs/server-cert.pem, certs/server-key.pem: Apparently failed
302 to add these from 1.11.x repo. Fixed.
304 2008-06-12 Micah Cowan <micah@cowan.name>
306 * FTPServer.pm, FTPTest.pm, HTTPServer.pm, HTTPTest.pm,
307 Test--no-content-disposition-trivial.px,
308 Test--no-content-disposition.px, Test--spider-fail.px,
309 Test--spider-r--no-content-disposition-trivial.px,
310 Test--spider-r--no-content-disposition.px,
311 Test--spider-r-HTTP-Content-Disposition.px, Test--spider-r.px,
312 Test--spider.px, Test-E-k-K.px, Test-E-k.px,
313 Test-HTTP-Content-Disposition-1.px,
314 Test-HTTP-Content-Disposition-2.px,
315 Test-HTTP-Content-Disposition.px,
316 Test-N--no-content-disposition-trivial.px,
317 Test-N--no-content-disposition.px,
318 Test-N-HTTP-Content-Disposition.px, Test-N-current.px,
319 Test-N-no-info.px, Test-N-old.px, Test-N-smaller.px, Test-N.px,
320 Test-O--no-content-disposition-trivial.px,
321 Test-O--no-content-disposition.px,
322 Test-O-HTTP-Content-Disposition.px, Test-O-nonexisting.px,
323 Test-O.px, Test-Restrict-Lowercase.px,
324 Test-Restrict-Uppercase.px, Test-auth-basic.px, Test-c-full.px,
325 Test-c-partial.px, Test-c.px, Test-ftp.px,
326 Test-nonexisting-quiet.px, Test-noop.px, Test-np.px,
327 Test-proxied-https-auth.px, Test-proxy-auth-basic.px,
328 WgetTest.pm.in: Use whatever ports are available, rather than
331 * run-px: More summary info, explicit exit code.
333 * Makefile.am: Reinstate "run-px-tests" as a dependency for the
336 * WgetTest.pm.in: Draw more attention to the fact that
337 WgetTest.pm is a generated file.
339 * Test-proxied-https-auth.px: Better cleanup, so next test can
342 2008-05-31 Micah Cowan <micah@cowan.name>
344 * Test-N-current.px: Ensure we catch failures.
346 * Test-N-old.px: Make it test only the timestamp, and not the
347 content length in addition.
349 * Test-N-smaller.px, Test-N-no-info.px: added.
351 * Test-c-partial.px: Improve checking that the file was
352 partially retrieved, rather than overwritten.
354 * run-px: Added Test-N-smaller.px, Test-N-no-info.px.
356 * HTTPServer.pm: Return 416 for fully-retrieved content, rather
357 than 206 with a zero content-length.
359 2008-05-23 Micah Cowan <micah@cowan.name>
361 * Test--spider.px: Make test expect 0 return code.
363 2008-05-22 Micah Cowan <micah@cowan.name>
365 * Makefile.am (run-px-tests): Replaced ugly list of tests with
366 run-px Perl script to manage running them.
370 * FTPServer.pm (run): Avoid re-forking. Fixes bug #20458.
372 2008-04-26 Micah Cowan <micah@cowan.name>
374 * Makefile.am, Test-proxied-https-auth.px: Added a test for
375 accessing password-protected HTTPS URLs through a proxy (via
378 2008-04-10 Micah Cowan <micah@cowan.name>
380 * Makefile.am, Test-proxy-auth-basic.px: Added a test for
381 accessing password-protected URLs through a proxy.
383 2008-01-25 Micah Cowan <micah@cowan.name>
385 * Makefile.am: Updated copyright year.
387 2008-01-23 Micah Cowan <micah@cowan.name>
389 * Makefile.am: Add libmd5 to unit-tests.
391 2007-11-28 Micah Cowan <micah@cowan.name>
393 * Makefile.am: Updated license exception for OpenSSL, per the
396 2007-10-18 Micah Cowan <micah@cowan.name>
398 * Makefile.am: Add dependency for unit_tests on libgnu.a.
400 2007-10-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
402 * WgetTest.pm.in: wget is built in the build tree. Use an
403 absolute path to the binary.
404 * Makefile.in: Removed, replaced by Makefile.am.
405 * Makefile.am: Converted from Makefile.in.
407 2007-09-25 Micah Cowan <micah@cowan.name>
409 * Makefile.in: Use EXEEXT instead of exeext.
411 2007-08-21 Mauro Tortonesi <mauro@ferrara.linux.it>
413 * WgetTest.pm.in: Added support for timestamping of pre-existing
416 * Test-N-current.px: Fixed broken test logic.
418 * Makefile.in: Updated list of automatically run tests.
420 * Test-HTTP-Content-Disposition.px: Added -e contentdisposition=on
421 option, since now HTTP Content-Disposition header support is turned
424 * Test-HTTP-Content-Disposition-1.px: Ditto.
426 2007-08-10 Mauro Tortonesi <mauro@ferrara.linux.it>
428 * Test--spider--no-content-disposition-trivial.px: Added new tests for
429 validation of HTTP Content-Disposition header support logic. In
430 particular, these tests check wget's behavior for every combination of
431 --spider [-r] and -e contentdisposition=on/off options.
433 * Test--spider-r-HTTP-Content-Disposition.px: Ditto.
435 * Test--spider-HTTP-Content-Disposition.px: Ditto.
437 * Test--spider--no-content-disposition.px: Ditto.
439 * Test--spider-r--no-content-disposition-trivial.px: Ditto.
441 * Test--spider-r--no-content-disposition.px: Ditto.
443 2007-07-25 Micah Cowan <micah@cowan.name>
445 * HTTPServer.pm (run, send_response): Farmed out some logic from
446 the run method into a separate one named send_response, which
447 was then modified to handle simple authentication testing.
448 (handle_auth): Added to handle simple authentication testing.
449 (verify_auth_basic): Checks to make sure Basic credentials are
451 (verify_auth_digest): Stub added; always fails test.
452 * Makefile.in: Added Test-auth-basic.px to list of automatically
454 * Test-auth-basic: Simple basic authentication test; mainly just
455 lets the server do its testing. Its current purpose is just to
456 ensure that correct basic creds are sent, but never until a
457 challenge has been sent.
459 2007-07-10 Mauro Tortonesi <mauro@ferrara.linux.it>
461 * Test--no-content-disposition.px: Added new tests for validation of
462 HTTP Content-Disposition header support logic. In particular, these
463 tests check wget's behavior for every combination of -N/-O and -e
464 contentdisposition=on/off options.
466 * Test--no-content-disposition-trivial.px: Ditto.
468 * Test-N-HTTP-Content-Disposition.px: Ditto.
470 * Test-N--no-content-disposition.px: Ditto.
472 * Test-N--no-content-disposition-trivial.px: Ditto.
474 * Test-O-HTTP-Content-Disposition.px: Ditto.
476 * Test-O--no-content-disposition.px: Ditto.
478 * Test-O--no-content-disposition-trivial.px: Ditto.
480 2007-07-05 Micah Cowan <micah@cowan.name>
483 Updated GPL reference to version 3 or later, removed FSF
486 2007-06-14 Mauro Tortonesi <mauro@ferrara.linux.it>
488 * FTPServer.pm: Added FTP testing support.
492 * Test-ftp.px: Ditto.
494 2006-12-22 Mauro Tortonesi <mauro@ferrara.linux.it>
496 * HTTPTest.pm: Don't ignore initial '/' character in requested URLs.
498 2006-11-10 Mauro Tortonesi <mauro@ferrara.linux.it>
500 * Test-np.px: Added test for -np.
502 * HTTPTest.pm: Ignore initial '/' character in requested URLs.
504 2006-10-12 Mauro Tortonesi <mauro@ferrara.linux.it>
506 * Test1.px: Renamed to Test-noop.px.
508 * Test-noop.px: Ditto.
510 * Test2.px: Renamed to Test-N.px.
514 * Test3.px: Renamed to Test-nonexisting-quiet.px.
516 * Test-nonexisting-quiet.px: Ditto.
518 * Test4.px: Renamed to Test-O-nonexisting.px.
520 * Test-O-nonexisting.px: Ditto.
522 * Test5.px: Renamed to Test-HTTP-Content-Disposition.px.
524 * Test-HTTP-Content-Disposition.px: Ditto.
526 * Test6.px: Renamed to Test-HTTP-Content-Disposition-1.px.
528 * Test-HTTP-Content-Disposition-1.px: Ditto.
530 * Test7.px: Renamed to Test-HTTP-Content-Disposition-2.px.
532 * Test-HTTP-Content-Disposition-2.px: Ditto.
534 * Test8.px: Replaced by Test--spider-r.px.
536 * Test9.px: Renamed to Test-Restrict-Lowercase.px.
538 * Test-Restrict-Lowercase.px: Ditto.
540 * Test10.px: Renamed to Test-Restrict-Uppercase.px.
542 * Test-Restrict-Uppercase.px: Ditto.
544 * Test--spider.px: Added test for spider mode.
546 * Test--spider-fail.px: Added failing test for spider mode.
548 * Test--spider-r.px: Added test for recursive spider mode.
550 * Test-c.px: Added test for --continue mode.
552 * Test-c-full.px: Added test for --continue mode.
554 * Test-c-partial.px: Added test for --continue mode.
556 * Test-O.px: Added test for -O.
558 * Test-N-current.px: Added test for -N.
560 * Test-N-old.px: Added test for -N.
562 * Test-E-k.px: Added test for -E -k.
564 * Test-E-k-K.px: Added test for -E -k -K.
566 2006-08-17 Mauro Tortonesi <mauro@ferrara.linux.it>
568 * HTTPServer.pm: Added support for Range header.
570 2006-07-14 Mauro Tortonesi <mauro@ferrara.linux.it>
572 * Test4.px: Fixed wrong expected behaviour.
574 2006-06-13 Mauro Tortonesi <mauro@ferrara.linux.it>
576 * Test9.px: Added test for --restrict-file-names=lowercase option.
578 * Test10.px: Added test for --restrict-file-names=uppercase option.
580 2006-05-26 Mauro Tortonesi <mauro@ferrara.linux.it>
582 * HTTPServer.pm: Added synchronization between client and server
583 processes to prevent the test to start before the server is ready.
585 * HTTPTest.pm: Ditto.
589 * Test1.px: Removed unneeded ../src/ from command line.
603 * Test8.px: Added test for recursive spider mode.
605 2006-05-26 Mauro Tortonesi <mauro@ferrara.linux.it>
607 * HTTPServer.pm: Fixed bug when returning 404. Improved logging.
609 * Test.pm: Added support for command lines which use an absolute path
612 2006-04-28 Mauro Tortonesi <mauro@ferrara.linux.it>
614 * Test5.px: Added test for HTTP Content-Disposition support.
620 2006-04-27 Mauro Tortonesi <mauro@ferrara.linux.it>
622 * HTTPServer.pm: Serve index.html if no filename is given.
624 * Test.pm: Added support for pre-existing files.
626 2006-01-24 Mauro Tortonesi <mauro@ferrara.linux.it>
628 * HTTPServer.pm: Enhanced logging support.
630 * HTTPTest.pm: Updated to new test format.
632 * Test.pm: Improved test setup, verification and cleanup. Major
635 * Test1.px: Updated to new test format.
637 * Test2.px: Updated to new test format.
639 * Test3.px: Added new test for quiet download of nonexistent URL.
641 * Test4.px: Added new test for quiet download of nonexistent URL with
642 --output-document option.
644 2005-12-05 Mauro Tortonesi <mauro@ferrara.linux.it>
646 * HTTPServer.pm: Refactored as a subclass of HTTP::Daemon.
647 Removed the old run method and renamed the old run_daemon
648 method to run. Added support for partial
650 * Testing.pm: Renamed to HTTPTest.pm.
652 * HTTPTest.pm: Refactored as a subclass of Test. Renamed
653 Run_HTTP_Test to run, verify_download to _verify_download
654 and added support for timestamp checking.
656 * Test.pm: Added Test class as the super class of every
659 * test1: Renamed to Test1.px.
661 * Test1.px: Refactored as an instance of the HTTPTest class.
663 * Test2.px: Added -N HTTP test.
665 2005-11-02 Mauro Tortonesi <mauro@ferrara.linux.it>
667 * HTTPServer.pm: Added basic support for HTTP testing.
669 * Testing.pm: Added basic support for feature testing (only HTTP
670 testing is supported at the moment).
672 * test1: Added basic HTTP test.