X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=tests%2FTest-c-partial.px;h=ccb20fda3b1a0837794bb11156738ed9355214ce;hp=ee48cbf621ba2ee82becac724eb6c8ab2b4375f1;hb=320cfdcb658e8d6556ae9dfd902c2db1db866a6b;hpb=829f83bf5bce33e856971b55a8e00c3560da7b4b diff --git a/tests/Test-c-partial.px b/tests/Test-c-partial.px index ee48cbf6..ccb20fda 100755 --- a/tests/Test-c-partial.px +++ b/tests/Test-c-partial.px @@ -1,6 +1,7 @@ -#!/usr/bin/perl -w +#!/usr/bin/env perl use strict; +use warnings; use HTTPTest; @@ -9,17 +10,22 @@ use HTTPTest; my $partiallydownloaded = < { @@ -32,7 +38,7 @@ my %urls = ( }, ); -my $cmdline = $WgetTest::WGETPATH . " -c http://localhost:8080/somefile.txt"; +my $cmdline = $WgetTest::WGETPATH . " -c http://localhost:{{port}}/somefile.txt"; my $expected_error_code = 0; @@ -44,16 +50,16 @@ my %existing_files = ( my %expected_downloaded_files = ( 'somefile.txt' => { - content => $wholefile, + content => $downloadedfile, }, ); ############################################################################### my $the_test = HTTPTest->new (name => "Test-c-partial", - input => \%urls, - cmdline => $cmdline, - errcode => $expected_error_code, + input => \%urls, + cmdline => $cmdline, + errcode => $expected_error_code, existing => \%existing_files, output => \%expected_downloaded_files); exit $the_test->run();