X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=tests%2FTest-idn-cmd.px;h=a81da8c9b47c6cd022fb9ac89ae90578ddffcdd8;hp=dba981838461df0a3a3e34f02ad129888c7ac9f6;hb=320cfdcb658e8d6556ae9dfd902c2db1db866a6b;hpb=78a765739543d5ca3bc83ad70f5d391b9d2af4f5 diff --git a/tests/Test-idn-cmd.px b/tests/Test-idn-cmd.px index dba98183..a81da8c9 100755 --- a/tests/Test-idn-cmd.px +++ b/tests/Test-idn-cmd.px @@ -1,8 +1,9 @@ -#!/usr/bin/perl +#!/usr/bin/env perl use strict; use warnings; +use WgetFeature qw(iri); use HTTPTest; # " Kon'nichiwa Japan @@ -27,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; @@ -40,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();