On Sat, Feb 21, 2009 at 5:24 AM, Gabor Szabo wrote:
>>> I wonder if there are modules out there that already do this?
>>> I could not find any that would fit my needs.
Test::Cmd? It's not built on Test::Builder but could be
adapted/wrapped. It uses shell redirection to capture output, which
sho
On Fri, Feb 20, 2009 at 11:30 PM, David E. Wheeler wrote:
> On Feb 20, 2009, at 1:23 PM, Gabor Szabo wrote:
>
>> I wonder if there are modules out there that already do this?
>> I could not find any that would fit my needs.
>
> Test::Output?
>
> http://search.cpan.org/perldoc?Test::Output
>
> If
Gabor Szabo writes:
> For this it is enough to run
>
> system "path/to/utitlity < in.txt > out.txt 2> err.txt"
>
> and then compare them to the expected.out and expected.err
Not what you're asking for, but when I see testing stdout and stderr
from child processes, I cannot resist ...
use Tes
On Feb 20, 2009, at 1:23 PM, Gabor Szabo wrote:
I wonder if there are modules out there that already do this?
I could not find any that would fit my needs.
Test::Output?
http://search.cpan.org/perldoc?Test::Output
If it doesn't capture output from other programs, have a look at
Capture::
Lately I need to test many small utilities written in various languages.
For the most simple cases I just need to run the utilities with a set of
input
and check if the output is the same as expected.
For this it is enough to run
system "path/to/utitlity < in.txt > out.txt 2> err.txt"
and then