X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=tests%2FTest-idn-cmd.px;h=a81da8c9b47c6cd022fb9ac89ae90578ddffcdd8;hp=a5c156a2b3113fe304ca3131bf10fae82661a559;hb=HEAD;hpb=523c3dfcbc3e6858ea94288554d67d3c1208a7c1 diff --git a/tests/Test-idn-cmd.px b/tests/Test-idn-cmd.px index a5c156a2..a81da8c9 100755 --- a/tests/Test-idn-cmd.px +++ b/tests/Test-idn-cmd.px @@ -1,7 +1,9 @@ -#!/usr/bin/perl -w +#!/usr/bin/env perl use strict; +use warnings; +use WgetFeature qw(iri); use HTTPTest; # " Kon'nichiwa Japan @@ -26,8 +28,8 @@ my %urls = ( }, ); -my $cmdline = $WgetTest::WGETPATH . " --debug --iri -rH" - . " -e http_proxy=localhost:{{port}} --locale=EUC-JP $euc_jp_hostname"; +my $cmdline = $WgetTest::WGETPATH . " --iri -r" + . " -e http_proxy=localhost:{{port}} --local-encoding=EUC-JP $euc_jp_hostname"; my $expected_error_code = 0; @@ -39,10 +41,10 @@ my %expected_downloaded_files = ( ############################################################################### -my $the_test = HTTPTest->new (name => "Test-iri-cmd", - input => \%urls, - cmdline => $cmdline, - errcode => $expected_error_code, +my $the_test = HTTPTest->new (name => "Test-idn-cmd", + input => \%urls, + cmdline => $cmdline, + errcode => $expected_error_code, output => \%expected_downloaded_files); exit $the_test->run();