X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=tests%2FTest--spider.px;h=633c32924206baaccbff475b679ed0dd3152535c;hp=f412c762afcd759d61af80fa9185ac98f0330667;hb=320cfdcb658e8d6556ae9dfd902c2db1db866a6b;hpb=998ede3a8810a68c9ec7ea9626b9b5ab9fd8ad29 diff --git a/tests/Test--spider.px b/tests/Test--spider.px index f412c762..633c3292 100755 --- a/tests/Test--spider.px +++ b/tests/Test--spider.px @@ -1,6 +1,7 @@ -#!/usr/bin/perl -w +#!/usr/bin/env perl use strict; +use warnings; use HTTPTest; @@ -32,7 +33,7 @@ my %urls = ( }, ); -my $cmdline = $WgetTest::WGETPATH . " --spider http://localhost:8080/index.html"; +my $cmdline = $WgetTest::WGETPATH . " --spider http://localhost:{{port}}/index.html"; my $expected_error_code = 0; @@ -42,9 +43,9 @@ my %expected_downloaded_files = ( ############################################################################### my $the_test = HTTPTest->new (name => "Test--spider", - input => \%urls, - cmdline => $cmdline, - errcode => $expected_error_code, + input => \%urls, + cmdline => $cmdline, + errcode => $expected_error_code, output => \%expected_downloaded_files); exit $the_test->run();