Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hello,

I am currently working on automating our Perl builds and I'd like to know how do I get the TAP output when I run make test so that the continuous integration system can pick up failures and display them nicely (manually going through a 5k line build log is not fun).

I've already tried setting PERL_TEST_HARNESS_DUMP_TAP as well as HARNESS_OPTIONS but those have no effect when running through make for some reason.

Steps to reproduce:

curl https://cpan.metacpan.org/authors/id/S/SH/SHAY/perl-5.20.3.tar.bz +2 | tar -jxC /root cd /root/perl* ./Configure -des -Dprefix=/opt/perl-5.20.3 make -j $(nproc) make test

I am running Perl 5.20.3 on Debian 9.0 amd64.

Regards.

Replies are listed 'Best First'.
Re: Get TAP output when compiling Perl and running "make test"
by beech (Parson) on Jul 21, 2017 at 20:22 UTC
      Thanks for your reply. I've already tried that and as mentioned in my post it does not have any effect, not even an error message when setting it to an invalid value.

        This may be worth asking on the #perl IRC channel. If you do, and/or you get the answer elsewhere, please do follow up on your question here. I'm genuinely curious.

        I know for fact that there are monks here who will be able to help, but who knows when one of them will be back on again.

        Thanks for your reply. I've already tried that and as mentioned in my post it does not have any effect, not even an error message when setting it to an invalid value.

        Hi,

        "make test" runs the perl program I linked. Since its parsing HARNESS_OPTIONS by itself, it hints/suggests its not using TAP::Harness to do that.

        My idea is that you read/trace the program, and if needed modify to suit your needs.