Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: Testing for non-perl system requirements

by randyk (Parson)
on Apr 01, 2008 at 19:56 UTC ( #677820=note: print w/replies, xml ) Need Help??

in reply to Testing for non-perl system requirements

The CPAN Testers Wiki has a couple of suggestions related to this under the entry "How can I stop getting FAIL reports for missing libraries or other non-Perl dependencies?".
  • Comment on Re: Testing for non-perl system requirements

Replies are listed 'Best First'.
Re^2: Testing for non-perl system requirements
by leocharre (Priest) on Apr 02, 2008 at 16:35 UTC
    There are some great notes there.
    Nice solutions for OS requirements also.

    It seems that if something is missing, you should exit in the Makefile.PL, that's what Devel::CheckLib suggests.

    Some of it seems bulky, like checking os.. the use-devel-assertos script is iffy, but dammit it works.

    Thank you so much, this is incredibly helpful.

    It seems you can basically test these things in the Makefile.PL. If something is missing, you should warn and exit. There is a convention for bailing out on bad os, 'OS UNSUPPORTED' or 'No support for OS'- I'm trying to find out what the warning should be for a missing binary dependency, or lib, etc- per CPAN tester standards.

    But my main question is answered, the tests should check the distributed code, not the system setup. The Makefile.PL should make decisions such as missing files, etc.. and should not die but exit with warnings if so.

      If you've got any suggestions for how to improve the use-devel-assertos and use-devel-checklib scripts then do please let me know, either by email or by filing a ticket in RT.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://677820]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2021-02-26 16:18 GMT
Find Nodes?
    Voting Booth?

    No recent polls found