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