~ubuntu-branches/ubuntu/trusty/wget/trusty-updates

« back to all changes in this revision

Viewing changes to tests/Test--spider.px

  • Committer: Bazaar Package Importer
  • Author(s): Marc Deslauriers
  • Date: 2009-12-12 08:15:59 UTC
  • mfrom: (2.1.5 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091212081559-mvccl4kzdqb138y3
Tags: 1.12-1.1ubuntu1
* Merge from debian testing, remaining changes:
  - Add wget-udeb to ship wget.gnu as alternative to busybox wget
    implementation.
* Keep build dependencies in main:
  - debian/control: remove info2man build-dep
  - debian/patches/00list: disable wget-infopod_generated_manpage.dpatch

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/perl -w
 
1
#!/usr/bin/perl
2
2
 
3
3
use strict;
 
4
use warnings;
4
5
 
5
6
use HTTPTest;
6
7
 
32
33
    },
33
34
);
34
35
 
35
 
my $cmdline = $WgetTest::WGETPATH . " --spider http://localhost:8080/index.html";
 
36
my $cmdline = $WgetTest::WGETPATH . " --spider http://localhost:{{port}}/index.html";
36
37
 
37
 
my $expected_error_code = 256;
 
38
my $expected_error_code = 0;
38
39
 
39
40
my %expected_downloaded_files = (
40
41
);
42
43
###############################################################################
43
44
 
44
45
my $the_test = HTTPTest->new (name => "Test--spider",
45
 
                              input => \%urls, 
46
 
                              cmdline => $cmdline, 
47
 
                              errcode => $expected_error_code, 
 
46
                              input => \%urls,
 
47
                              cmdline => $cmdline,
 
48
                              errcode => $expected_error_code,
48
49
                              output => \%expected_downloaded_files);
49
50
exit $the_test->run();
50
51