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