Mercurial > hg > Applications > mh
view nkf-utf8/make_test.pl @ 17:76d91e545ea8 default tip
addrsbr and dtimep fix
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 24 Nov 2014 14:49:25 +0900 |
parents | 441a2190cfae |
children |
line wrap: on
line source
#!/usr/bin/perl while ( <test_data/*.cmd> ) { $file = $_; $test = $file; $test =~ s/\.cmd$//; $out = $test.".out"; $out = `cat $out`; $in = $test.".in"; $in = `cat $in`; $opt = `cat $file`; chomp($opt); $inpack = pack('u',$in); chomp($inpack); $outpack = pack('u',$out); chomp($outpack); print << "EOFEOF"; # $test \$example{'$test'} = unpack('u',<<'eofeof'); $inpack eofeof \$example{'$test.ans'} = unpack('u',<<'eofeof'); $outpack eofeof print "$test "; \&test("\$nkf $opt",\$example{'$test'},\$example{'$test.ans'}); EOFEOF }