X-Git-Url: http://sjero.net/git/?a=blobdiff_plain;f=tests%2FTest-np.px;h=f674193a3d7b50f57cf3232723dffabcdd6d56d9;hb=edc9055768fed952b30629a9e8fa38ef68761882;hp=dcb165fda033a21a2867301d57ae3e65e891b3dc;hpb=227d03c80379c269eaf7ee57da711f22d13b33b8;p=wget diff --git a/tests/Test-np.px b/tests/Test-np.px old mode 100644 new mode 100755 index dcb165fd..f674193a --- a/tests/Test-np.px +++ b/tests/Test-np.px @@ -1,6 +1,7 @@ -#!/usr/bin/perl -w +#!/usr/bin/perl use strict; +use warnings; use HTTPTest; @@ -14,7 +15,7 @@ my $mainpage = <

- Some text and a link to a second page. + Some text and a link to a second page.

@@ -27,7 +28,7 @@ my $secondpage = <

- Some text and a link to a third page. + Some text and a link to a third page.

@@ -40,7 +41,7 @@ my $thirdpage = <

- Some text and a link to a higher level page. + Some text and a link to a higher level page.

@@ -69,7 +70,7 @@ my $higherlevelpage = < This page is on a higher level in the URL path hierarchy. Therefore, it should not be downloaded. Wget should not visit the following link to a - fourth page. + fourth page.

@@ -119,7 +120,7 @@ my %urls = ( }, ); -my $cmdline = "wget -np -nH -r http://localhost:8080/firstlevel/"; +my $cmdline = $WgetTest::WGETPATH . " -np -nH -r http://localhost:{{port}}/firstlevel/"; my $expected_error_code = 0; @@ -142,7 +143,7 @@ my $the_test = HTTPTest->new (name => "Test-np", cmdline => $cmdline, errcode => $expected_error_code, output => \%expected_downloaded_files); -$the_test->run(); +exit $the_test->run(); # vim: et ts=4 sw=4