-#!/usr/bin/perl -w
+#!/usr/bin/env perl
use strict;
+use warnings;
use HTTPTest;
<title>Main Page Title</title>
</head>
<body>
- <a href="http://localhost:8080/subpage.php">Secondary Page</a>
+ <a href="http://localhost:{{port}}/subpage.php">Secondary Page</a>
</body>
</html>
EOF
},
);
-my $cmdline = "wget -d -r -nd -E -k -K http://localhost:8080/index.php";
+my $cmdline = $WgetTest::WGETPATH . " -r -nd -E -k -K http://localhost:{{port}}/index.php";
my $expected_error_code = 0;
###############################################################################
my $the_test = HTTPTest->new (name => "Test-E-k-K",
- input => \%urls,
- cmdline => $cmdline,
- errcode => $expected_error_code,
+ input => \%urls,
+ cmdline => $cmdline,
+ errcode => $expected_error_code,
output => \%expected_downloaded_files);
-$the_test->run();
+exit $the_test->run();
# vim: et ts=4 sw=4