~ubuntu-branches/ubuntu/lucid/wget/lucid-security

« back to all changes in this revision

Viewing changes to tests/Test-E-k-K.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
 
13
14
  <title>Main Page Title</title>
14
15
</head>
15
16
<body>
16
 
  <a href="http://localhost:8080/subpage.php">Secondary Page</a>
 
17
  <a href="http://localhost:{{port}}/subpage.php">Secondary Page</a>
17
18
</body>
18
19
</html>
19
20
EOF
60
61
    },
61
62
);
62
63
 
63
 
my $cmdline = $WgetTest::WGETPATH . " -d -r -nd -E -k -K http://localhost:8080/index.php";
 
64
my $cmdline = $WgetTest::WGETPATH . " -d -r -nd -E -k -K http://localhost:{{port}}/index.php";
64
65
 
65
66
my $expected_error_code = 0;
66
67
 
79
80
###############################################################################
80
81
 
81
82
my $the_test = HTTPTest->new (name => "Test-E-k-K",
82
 
                              input => \%urls, 
83
 
                              cmdline => $cmdline, 
84
 
                              errcode => $expected_error_code, 
 
83
                              input => \%urls,
 
84
                              cmdline => $cmdline,
 
85
                              errcode => $expected_error_code,
85
86
                              output => \%expected_downloaded_files);
86
87
exit $the_test->run();
87
88