]>
git.refcnt.org Git - colorize.git/blob - t/conf/param.t
7 use Colorize
::Common
qw(:defaults $write_to_tmpfile);
8 use File::Temp qw(tmpnam);
22 my $program = tmpnam
();
23 my $conf_file = tmpnam
();
24 # -DTEST omitted on purpose
25 skip
'compiling failed (config param)', $tests unless system(qq($compiler -o
$program $source)) == 0;
27 my $infile = $write_to_tmpfile->(<<'EOT');
34 open(my $fh, '>', $conf_file) or die "Cannot open `$conf_file' for writing: $!\n";
38 is
(qx($program --config
=$conf_file $infile), <<"EOT", 'config param');