parallel testing when STDOUT is not a terminal

David Golden xdaveg at gmail.com
Tue Dec 4 08:17:33 EST 2007


I've discovered that having HARNESS_OPTIONS=j9 is not a nice thing to
set as a default.  Test output for CPAN::Reporter winds up really
screwed up, as shown below.  Is there a non-ornamented way of running
tests in parallel?  I.e. running them in parallel and getting just
summary output rather than watching the little bars grow across the
screen?  Or perhaps this is something like colors where it needs to
happen automatically if STDOUT is not a terminal.

Regards,
David

[Note -- in vim, I saw carriage returns at the start of every "=" line.]

Output from '/usr/bin/make test':

PERL_DL_NONLAZY=1 /home/david/perl/5.8.8/bin/perl
"-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib',
'blib/arch')" t/*.t


t/02-kwalitee.......... ok

===(       0 )==========================================================

t/02-pod-coverage...... ok

===(       0 )==========================================================
===(       1 )==========================================================
===(       2 )==========================================================

t/99-prepare........... ok

===(       2 )==========================================================
===(       3 )==========================================================
===(       4 )==========================================================
===(       5 )==========================================================
===(       6 )==========================================================
===(       8 )==========================================================
===(      10 )==========================================================MIME::Body::File->open
./testout/fbody: No such file or directory at
/home/david/.cpan/build/MIME-tools-5.425-WTOu4i/blib/lib/MIME/Body.pm
line 435.
# Looks like you planned 30 tests but only ran 9.
# Looks like your test died just after 9.


t/Body.................  Dubious, test returned 255 (wstat 65280, 0xff00)
 Failed 21/30 subtests

===(      10 )==========================================================
===(      12 )==========================================================#
Using gzip: 1

===(      16 )==========================================================
===(      20 )==========================================================

t/Decoder.............. ok

===(      20 )==========================================================
===(      24 )==========================================================
===(      32 )==========================================================
===(      40 )==========================================================

t/02-pod............... ok

===(      42 )==========================================================
===(      48 )==========================================================

t/ParserPreamble....... ok

===(      55 )==========================================================
===(      64 )==========================================================

t/ParserEncoded........ ok

===(      65 )==========================================================
===(      80 )==========================================================

t/Misc................. ok

===(      93 )==========================================================
===(      96 )==========================================================

t/Head................. ok

===(     117 )==========================================================
===(     128 )==========================================================
===(     160 )==========================================================
===(     192 )==========================================================

t/Words................ ok

===(     224 )==========================================================

t/WordDecoder.......... ok

===(     226 )==========================================================

t/Gauntlet............. ok

===(     234 )==========================================================

t/Parser............... ok

===(     238 )==========================================================

t/Entity............... ok

===(     241 )==========================================================
===(     256 )==========================================================

t/Ref.................. ok

===(     291 )==========================================================

t/Smtpsend............. ok

===(     300 )==========================================================
Test Summary Report
-------------------
t/Body.t           (Wstat: 65280 Tests: 9 Failed: 0)
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 30 tests but ran 9.
Files=17, Tests=300,  3 wallclock secs ( 0.05 usr  0.00 sys +  1.60
cusr  0.28 csys =  1.93 CPU)
Result: FAIL
Failed 1/17 test programs. 0/300 subtests failed.


More information about the tapx-dev mailing list