X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=tests%2FTest-E-k.px;h=99df5b49bf546a2412ec6471cb023fcd6adab2e2;hp=3bf441df6d070fbd8c61d82526c52a241879f2c8;hb=HEAD;hpb=caae3b70f46bd519857b595f7f06ea0179551336 diff --git a/tests/Test-E-k.px b/tests/Test-E-k.px index 3bf441df..99df5b49 100755 --- a/tests/Test-E-k.px +++ b/tests/Test-E-k.px @@ -1,6 +1,7 @@ -#!/usr/bin/perl -w +#!/usr/bin/env perl use strict; +use warnings; use HTTPTest; @@ -13,7 +14,7 @@ my $mainpage = <Main Page Title - Secondary Page + Secondary Page EOF @@ -60,7 +61,7 @@ my %urls = ( }, ); -my $cmdline = $WgetTest::WGETPATH . " -r -nd -E -k http://localhost:8080/index.php"; +my $cmdline = $WgetTest::WGETPATH . " -r -nd -E -k http://localhost:{{port}}/index.php"; my $expected_error_code = 0; @@ -76,9 +77,9 @@ my %expected_downloaded_files = ( ############################################################################### my $the_test = HTTPTest->new (name => "Test-E-k", - input => \%urls, - cmdline => $cmdline, - errcode => $expected_error_code, + input => \%urls, + cmdline => $cmdline, + errcode => $expected_error_code, output => \%expected_downloaded_files); exit $the_test->run();