in reply to ExtUtils::MakeMaker : delcare a binary dependency

You can't really declare binary dependencies.

In my modules, I make the tests check whether the external binary is available and otherwise skip the test. See for example helper.pm and t/47-mech-simplest.t in WWW::Mechanize::Chrome.

You can add appropriate system dependencies via CPAN::Plugin::Sysdeps, but I'm not sure how many CPAN testers honour this.

  • Comment on Re: ExtUtils::MakeMaker : delcare a binary dependency

Replies are listed 'Best First'.
Re^2: ExtUtils::MakeMaker : delcare a binary dependency
by bliako (Abbot) on Aug 22, 2023 at 08:33 UTC

      That is how I do it, but it may also make sense to simply skip the test using something like this:

      use Test::More; if( chrome_is_unavailable ) { plan skip_all => "Chrome / chromium not found/installed, skipping +test."; exit 0; }; plan tests => $test_count; ... done_testing();

        got it thanks