]> sjero.net Git - wget/blob - tests/Test-nonexisting-quiet.px
Automated merge.
[wget] / tests / Test-nonexisting-quiet.px
1 #!/usr/bin/perl -w
2
3 use strict;
4
5 use HTTPTest;
6
7
8 ###############################################################################
9
10 my $dummyfile = <<EOF;
11 Don't care.
12 EOF
13
14 # code, msg, headers, content
15 my %urls = (
16     '/dummy.html' => {
17         code => "200",
18         msg => "Dontcare",
19         headers => {
20             "Content-type" => "text/plain",
21         },
22         content => $dummyfile
23     },
24 );
25
26 my $cmdline = $WgetTest::WGETPATH . " --quiet http://localhost:{{port}}/nonexistent";
27
28 my $expected_error_code = 256;
29
30 my %expected_downloaded_files = (
31 );
32
33 ###############################################################################
34
35 my $the_test = HTTPTest->new (name => "Test-nonexisting-quiet",
36                               input => \%urls, 
37                               cmdline => $cmdline, 
38                               errcode => $expected_error_code, 
39                               output => \%expected_downloaded_files);
40 exit $the_test->run();
41
42 # vim: et ts=4 sw=4
43