|Pathologically Eclectic Rubbish Lister
Re: ExtUtils::MakeMaker : delcare a binary dependencyby Discipulus (Canon)
|on Aug 29, 2023 at 10:19 UTC
I second what tobyink said: use die and BAIL_OUT as soon as needed.
I asked very similar question when I received just red failurs from (very old win32) smokers CPAN tester machines.
My Win32::Backup::Robocopy needs:
1) to just run on win32 systems
..in the Makefile.PL both check are done and they use die to exit direclty the building phase.
3) the module also needs a valid and not bugged version of the executable, so in 00-robocopycheck.t I re-test both the persence and the validity of the executable (with the check_robocopy_version method provided by the /t/bkpscenario.pm module).
With the above now the module tester matrix is just full of unknown instead of failures. But the output is both useful for the tester or casual user and for me too:
..and no one reached the test phase, but if this happens and there is an invalid version of the needed executable we will both know, me and the user.
There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.