1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00
wget/tests
Jookia e4db00d74d Add option to write URL rejections to a tab-delimited CSV log.
* main.c: Add "--rejected-log" option.
 * init.c: Add "rejectedlog" command.
 * options.h: Add "rejected_log" parameter string.
 * wget.texi: Add brief documentation on new --rejected-log option.
 * recur.c: Optionally log details of URLs not traversed.
   Add reject_reason enum.
   (download_child_p -> download_child): Return a reject_reason.
   (descend_redirect_p -> descend_redirect): Return a reject_reason.
   (retrieve_tree): Support logging reasons for rejection.
   Add write_reject_log_header that writes a CSV format header to a file.
   Add write_reject_log_url that writes a url struct to a file in CSV format.
   Add write_reject_log_reason that writes the URL and parent URL as well as the
   rejection reason to a CSV file.
 * Test--rejected-log.px: Add a basic test for the --rejected-log command.
 * tests/Makefile.am: Run Test--rejected-log.px.

This allows you to figure out why URLs are being rejected and some context
around it. CSV is used as the output format since it can be used easily parsed,
it's delimited by tabs instead of commas to allow using all (quoted) URL
characters and includes column names which may be used for compatibility.
2015-08-06 08:10:55 +02:00
..
certs Make Test-proxied-https-auth.px pass, and ensure it returns the proper exit status when it does not. 2008-06-22 12:58:03 -07:00
FTPServer.pm tests/FTPServer.pm: Fix ftp tests for Windows 2014-12-21 18:12:17 +01:00
FTPTest.pm Stylistic and idiomatic cleanups in Perl tests 2014-11-01 22:37:57 +05:30
HTTPServer.pm Perl test suite: Substitue server port in HTTP headers 2014-11-26 12:25:40 +01:00
HTTPTest.pm Stylistic and idiomatic cleanups in Perl tests 2014-11-01 22:37:57 +05:30
Makefile.am Add option to write URL rejections to a tab-delimited CSV log. 2015-08-06 08:10:55 +02:00
Test-204.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test--httpsonly-r.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test--no-content-disposition-trivial.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test--no-content-disposition.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test--post-file.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test--rejected-log.px Add option to write URL rejections to a tab-delimited CSV log. 2015-08-06 08:10:55 +02:00
Test--spider-fail.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test--spider-r--no-content-disposition-trivial.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test--spider-r--no-content-disposition.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test--spider-r-HTTP-Content-Disposition.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test--spider-r.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test--spider.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test--start-pos--continue.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test--start-pos.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-auth-basic.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-auth-no-challenge-url.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-auth-no-challenge.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-auth-retcode.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-auth-with-content-disposition.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-c-full.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-c-partial.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-c-shorter.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-c.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-cookies-401.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-cookies.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-E-k-K.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-E-k.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-ftp--start-pos.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-ftp-bad-list.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-ftp-iri-disabled.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-ftp-iri-fallback.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-ftp-iri-recursive.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-ftp-iri.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-ftp-list-Multinet.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-ftp-list-UNIX-hidden.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-ftp-list-Unknown-a.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-ftp-list-Unknown-hidden.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-ftp-list-Unknown-list-a-fails.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-ftp-list-Unknown.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-ftp-pasv-fail.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-ftp-recursive.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-ftp.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-HTTP-Content-Disposition-1.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-HTTP-Content-Disposition-2.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-HTTP-Content-Disposition.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-i-ftp.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-i-http.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-idn-cmd-utf8.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-idn-cmd.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-idn-headers.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-idn-meta.px fixed IRI misbehaviour(s) 2014-10-20 08:53:12 +02:00
Test-idn-robots-utf8.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-idn-robots.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-iri-disabled.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-iri-forced-remote.px fixed IRI misbehaviour(s) 2014-10-20 08:53:12 +02:00
Test-iri-list.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-iri-percent.px fixed IRI misbehaviour(s) 2014-10-20 08:53:12 +02:00
Test-iri.px fixed IRI misbehaviour(s) 2014-10-20 08:53:12 +02:00
Test-k.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-meta-robots.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-N--no-content-disposition-trivial.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-N--no-content-disposition.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-N-current.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-N-HTTP-Content-Disposition.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-N-no-info.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-N-old.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-N-smaller.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-N.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-nonexisting-quiet.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-noop.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-np.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-O--no-content-disposition-trivial.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-O--no-content-disposition.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-O-HTTP-Content-Disposition.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-O-nc.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-O-nonexisting.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-O.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-proxied-https-auth-keepalive.px Add valgrind suppression files for HTTPS tests 2015-06-16 20:31:00 +05:30
Test-proxied-https-auth.px Add valgrind suppression files for HTTPS tests 2015-06-16 20:31:00 +05:30
Test-proxy-auth-basic.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-restrict-ascii.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-Restrict-Lowercase.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-Restrict-Uppercase.px use test filename as default test name 2014-10-02 15:01:19 +02:00
Test-stdouterr.px Fix skip exit code to 77 in tests/Test-stdouterr.px 2014-11-05 12:10:57 +01:00
valgrind-suppressions Add Valgrind suppression for libidn.so at idna_to_ascii_4z 2015-04-11 23:16:32 +02:00
valgrind-suppressions-ssl Add valgrind suppression files for HTTPS tests 2015-06-16 20:31:00 +05:30
WgetFeature.cfg Enhance tests to include feature checking. 2009-09-05 22:54:05 +02:00
WgetFeature.pm * WgetFeature.pm: Fixed finding of WgetFeature.cfg when using separate 2014-11-03 14:23:29 +01:00
WgetTests.pm Fix undeclared loop variable in Perl test suite 2015-05-20 10:04:07 +02:00