On 2/12/07, imacat <[EMAIL PROTECTED]> wrote:
On Sun, 11 Feb 2007 18:46:33 -0500
"Patrick LeBoutillier" <[EMAIL PROTECTED]> wrote:
> I have submitted a module to CPAN that works only on Linux. What must I do
> in order to stop getting FAILs for platforms on which my module does
> not work on?
See the documentation on the test module you use (Test::Tutorial, Test,
Test::Simple, Test::More, etc.) and look for the key word "skip".
I believe that you can also just not generate a Makefile or Build file
if you are on any platform other than Linux. (I.e. "die" in the
Makefile.PL). CPAN.pm will stop at that point and no test report will
be sent with CPAN::Reporter. If you die with "No support for OS $^O",
that specific string should be detected by any of the CPANPLUS-based
testers and that should generate an "NA" message instead of a "FAIL".
Is this obscure? Yes. Documented anywhere? Not that I know of.
I've been piecing it together from the sources.
Regards,
David