in reply to Re^3: CPAN newbie troubles
in thread CPAN newbie troubles
That's not what the code in question does at all. It silences the test failures.
You're wrong, I'm afraid.
# After adding 'linux' to the 'unsupported OS' list $ make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_h +arness(0, 'blib/lib', 'blib/arch')" t/*.t t/Term-Menu-Hierarchical.t .. 1/2 Bailout called. Further testing sto +pped: OS unsupported # Failed test at t/Term-Menu-Hierarchical.t line 17. FAILED--Further testing stopped: OS unsupported make: *** [test_dynamic] Error 255
Even though 'test_harness' has '0' for the 'verbose' argument, 'make test' clearly and explicitly throws the specified error.
You weren't very clear about what you wanted to do in your original post.
Hopefully, it's clear enough now.
You'll need to muck around with Makefile.PL.
I quote, again, from the CPAN Wiki (emphasis mine):
"How can I indicate that my distribution only works on a particular operating system?" While it isn't a very elegant solution, the recommend approach is to either die in the Makefile.PL or Build.PL (or BAIL_OUT in a test file) with one of the following messages: • No support for OS • OS unsupported CPAN Testers tools will look for one of those phrases and will send an NA (Not Available) report for that platform.
Thanks for trying. Perhaps someone who is actually familiar with the process will have a good answer.
-- Education is not the filling of a pail, but the lighting of a fire. -- W. B. Yeats
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: CPAN newbie troubles
by ikegami (Patriarch) on Jan 05, 2011 at 00:57 UTC | |
by oko1 (Deacon) on Jan 05, 2011 at 01:22 UTC | |
by ikegami (Patriarch) on Jan 05, 2011 at 03:21 UTC | |
by oko1 (Deacon) on Jan 05, 2011 at 03:38 UTC | |
by ikegami (Patriarch) on Jan 05, 2011 at 06:04 UTC | |
|