Subject: | Weird behaviour of ‘force test’ |
Apologies if this is a false report due to my eccentric setup.
After a successful test, repeating the command won’t rerun the tests. So I do ‘force test’ and it regenerates the Makefile instead, without running the tests.
Now, I am using an installed copy of bleadperl, and I may tweak it and reinstall it before testing again (just to see whether the change will break a specific module). That may account for the confusion. But still, the message ‘make_test NO but failure ignored because 'force' in effect’ is not correct. It’s just confusing.
(As an aside, can’t the shell tell the difference between a user-typed ‘test’ command and a test triggered as a side-effect of other things?)
----------
Show quoted text
cpan> test XML::Fast
Running test for module 'XML::Fast'
MONS/XML-Fast-0.11.tar.gz
Has already been unwrapped into directory /Users/sprout/.cpan/build/XML-Fast-0.11-_nsN9Z
MONS/XML-Fast-0.11.tar.gz
Has already been prepared
MONS/XML-Fast-0.11.tar.gz
Has already been made
MONS/XML-Fast-0.11.tar.gz
Has already been tested successfully
Show quoted textcpan> force test XML::Fast
Running test for module 'XML::Fast'
MONS/XML-Fast-0.11.tar.gz
Has already been unwrapped into directory /Users/sprout/.cpan/build/XML-Fast-0.11-_nsN9Z
MONS/XML-Fast-0.11.tar.gz
Has already been prepared
MONS/XML-Fast-0.11.tar.gz
Has already been made
Running make test
Makefile out-of-date with respect to /usr/local/lib/perl5/5.21.4/darwin-2level/Config.pm /usr/local/lib/perl5/5.21.4/darwin-2level/CORE/config.h
Cleaning current config before rebuilding Makefile...
make -f Makefile.old clean > /dev/null 2>&1
/usr/local/bin/perl5.21.4 Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for XML::Fast
Writing MYMETA.yml and MYMETA.json
==> Your Makefile has been rebuilt. <==
==> Please rerun the make command. <==
false
make: *** [Makefile] Error 1
MONS/XML-Fast-0.11.tar.gz
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports MONS/XML-Fast-0.11.tar.gz
Failed during this command:
MONS/XML-Fast-0.11.tar.gz : make_test NO but failure ignored because 'force' in effect