]> sjero.net Git - wget/blob - tests/Test-auth-retcode.px
Add --show-progress to force display progress bar
[wget] / tests / Test-auth-retcode.px
1 #!/usr/bin/env perl
2
3 use strict;
4 use warnings;
5
6 use HTTPTest;
7
8
9 ###############################################################################
10
11 # code, msg, headers, content
12 my %urls = (
13     '/dummy.txt' => {
14         code => "403",
15         msg => "Dontcare",
16         headers => {
17             "Content-type" => "text/plain",
18             "Last-Modified" => "Sat, 09 Oct 2004 08:30:00 GMT",
19         },
20     },
21 );
22
23 my $cmdline = $WgetTest::WGETPATH . " -N http://localhost:{{port}}/dummy.txt";
24
25 my $expected_error_code = 8;
26
27 my %expected_downloaded_files = ();
28
29 ###############################################################################
30
31 my $the_test = HTTPTest->new (name => "Test-auth-retcode",
32                               input => \%urls,
33                               cmdline => $cmdline,
34                               errcode => $expected_error_code,
35                               output => \%expected_downloaded_files);
36 exit $the_test->run();
37
38 # vim: et ts=4 sw=4