test-ftp.px
来自「一个从网络上自动下载文件的自由工具」· PX 代码 · 共 45 行
PX
45 行
#!/usr/bin/perl -wuse strict;use FTPTest;###############################################################################my $afile = <<EOF;Some text.EOF$afile =~ s/\n/\r\n/;# code, msg, headers, contentmy %urls = ( '/afile.txt' => { content => $afile, },);my $cmdline = $WgetTest::WGETPATH . " -S ftp://localhost:8021/afile.txt";my $expected_error_code = 0;my %expected_downloaded_files = ( 'afile.txt' => { content => $afile, },);###############################################################################my $the_test = FTPTest->new (name => "Test-ftp", input => \%urls, cmdline => $cmdline, errcode => $expected_error_code, output => \%expected_downloaded_files);exit $the_test->run();# vim: et ts=4 sw=4
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?