Clownfish

 view release on metacpan or  search on metacpan

buildlib/Clownfish/Build.pm  view on Meta::CPAN


    # Check whether 'use Clownfish::Test' succeeds. If this fails, it is
    # probably caused by a failure to find symbols from Clownfish.so,
    # indicating a build problem. In this case, make the build fail, so
    # we get the full build log on CPAN Testers. Also print contents of
    # the generated Makefile.
    my $error = system("$^X -Mblib -MClownfish::Test -e1");
    if ($error) {
        print STDERR "Build succeeded, but 'use Clownfish::Test' failed.\n";
        if ($ENV{AUTOMATED_TESTING}) {
            my $makefile = do { local(@ARGV, $/) = 'Makefile'; <> };
            print STDERR "\nContents of Makefile:\n$makefile";
        }
        die;
    }
}

sub ACTION_clownfish {
    my $self = shift;

    $self->depends_on('cfc');



( run in 0.504 second using v1.01-cache-2.11-cpan-49f99fa48dc )