On Wed Aug 29 04:05:05 2012, d.thomas@its.uq.edu.au wrote:
Show quoted text> >Net::SNMPTrapd needs the Net::SNMP module to perform
> >the full set of tests
> you could add a 'test_requires' to META.yml
>
> and this to META.json
> "test" : {
> "requires" : {
> "Net::SNMP" : "0",
> }
> }
The test.pl file should test if Net::SNMP is installed and fail
gracefully if not. Since this isn't a requirement for installation of
the module, I don't include it in the Makefile.PL PREREQ_PM list.
The META files are generated at 'make dist' time, so I won't edit them
manually.
Do you have a recommendation as to how to add Net::SNMP as a test-only
suggestion (not a requirement) using the EU::MM module my Makefile.PL
uses? If it can't be done and the tests fail gracefully without
Net::SNMP, I won't bother adding it.