in reply to CPAN automated tests for IPC
I thought creating a "mock" of this same program that expects an input and just print some output....The mock that I created is a very simple C program that would need to be compiled before running the tests using a Makefile already available.
If all the mock program needs to do is accept some input and produce some output, why woudl you use C to write that?
I use Perl one-liners for similar purposes al the time:
my $mockedReturn = `perl -E"say 'fred' if $ARGV[0] eq 'bill'`;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: CPAN automated tests for IPC
by glasswalk3r (Friar) on Mar 17, 2012 at 15:54 UTC | |
by BrowserUk (Patriarch) on Mar 17, 2012 at 16:40 UTC | |
by glasswalk3r (Friar) on Mar 17, 2012 at 17:31 UTC |