]> sjero.net Git - wget/blob - tests/Test-ftp.px
Automated merge.
[wget] / tests / Test-ftp.px
1 #!/usr/bin/perl -w
2
3 use strict;
4
5 use FTPTest;
6
7
8 ###############################################################################
9
10 my $afile = <<EOF;
11 Some text.
12 EOF
13
14 $afile =~ s/\n/\r\n/;
15
16
17 # code, msg, headers, content
18 my %urls = (
19     '/afile.txt' => {
20         content => $afile,
21     },
22 );
23
24 my $cmdline = $WgetTest::WGETPATH . " -S ftp://localhost:{{port}}/afile.txt";
25
26 my $expected_error_code = 0;
27
28 my %expected_downloaded_files = (
29     'afile.txt' => {
30         content => $afile,
31     },
32 );
33
34 ###############################################################################
35
36 my $the_test = FTPTest->new (name => "Test-ftp",
37                              input => \%urls, 
38                              cmdline => $cmdline, 
39                              errcode => $expected_error_code, 
40                              output => \%expected_downloaded_files);
41 exit $the_test->run();
42
43 # vim: et ts=4 sw=4
44