glasswalk3r has asked for the wisdom of the Perl Monks concerning the following question:
Hello there,
I would like to include some automated tests for a distribution that I release to CPAN. One of the modules included uses IPC to execute a specific program, expecting a defined output from it.
Having this program available everywhere is really hard because actually it connects to a server, execute commands and return the output generated. I thought creating a "mock" of this same program that expects an input and just print some output. That is easy to do.
What I would like to know is how is the best way to include that in the distribution to release to CPAN. 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. Considering that I'm using ExtUtils::MakeMaker to generate the distribution Makefile, how can I do that?
More important than that, is this the best way to do automated IPC testing for CPAN?
Thanks,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CPAN automated tests for IPC
by Eliya (Vicar) on Mar 16, 2012 at 17:46 UTC | |
|
Re: CPAN automated tests for IPC
by BrowserUk (Patriarch) on Mar 16, 2012 at 19:05 UTC | |
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 | |
|
Re: CPAN automated tests for IPC
by Anonymous Monk on Mar 16, 2012 at 21:21 UTC |