@d = ( "enc", @{$variant{$t}}, "-d" );
}
- ok(run(app([$cmd, @e],
- stdin => $test, stdout => $cipherfile))
- && run(app([$cmd, @d],
- stdin => $cipherfile, stdout => $clearfile))
+ ok(run(app([$cmd, @e, "-in", $test, "-out", $cipherfile]))
+ && run(app([$cmd, @d, "-in", $cipherfile, "-out", $clearfile]))
&& compare_text($test,$clearfile) == 0, $t);
unlink $cipherfile, $clearfile;
}
ok(run(app([@cmd,
"-in", "$testtype-fff.p",
"-inform", "p",
- "-outform", $to],
- stdout => "$testtype-f.$to")), "p -> $to");
+ "-out", "$testtype-f.$to",
+ "-outform", $to])),
+ "p -> $to");
}
foreach my $to (@conversionforms) {
ok(run(app([@cmd,
"-in", "$testtype-f.$from",
"-inform", $from,
- "-outform", $to],
- stdout => "$testtype-ff.$from$to")), "$from -> $to");
+ "-out", "$testtype-ff.$from$to",
+ "-outform", $to])),
+ "$from -> $to");
}
}