perl-diddler has asked for the wisdom of the Perl Monks concerning the following question:
http://www.cpantesters.org/distro/P/P.html.
In there, only 3 people had failures:
With 1 tester having 1 report on MSWIN on XP in German.
With 2nd tester having 3 FAILS on perl 5.{8.{8,9},18.1}
but 11 PASSES on other versions.
With a 3rd tester, having 100% fails (23/23 FAIL).
Except for the 5.8 version of perl, which might have some
compat prob(s) I need to work around, the rest
are the same error as commented on here:
http://www.perlmonks.org/?node_id=1061652.
Specifically, these lines that seemingly conflict:
This was also a problem in 1.1.1, but there it was near 100%, across the board.PERL_DL_NONLAZY=1 /home/sand/src/perl/repoperls/installed-perls/perl/v +5.12.5/9980/bin/perl "-MExtUtils::Command::MM" "-MTest::Harness" "-e" + "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/a +rch')" t/*.t Can't locate mem.pm in @INC (you may need to install the mem module) ( +@INC contains: [...]:.) at lib/P.pm line 150. BEGIN failed--compilation aborted at lib/P.pm line 150. ## and ------/PREREQUISITES/------ Prerequisite modules loaded: requires: Module Need Have ------------------- ------ -------- mem v0.3.2 0.3.2 Test::Simple 0.44 1.001002 build_requires: Module Need Have ------------------- ------ -------- mem v0.3.2 0.3.2 ----------------------------
I also had a "use_ok(P)" and use_ok(mem) at the beginning
-- and called BAIL_OUT if they were not found. I
tested the missing cases, and DID get the BAIL_OUT message.
So now I'm getting 'mem' being both present and non-present
in the same test. This doesn't make sense.
I did contact the tester with all the fails and asked if
they could think of anything that might be causing
this... will have to see if they have ideas or even
respond (they might be busy or something)...
Anyway -- just thought I'd throw this out, since this
aspect of the original post managed to not be addressed
(likely due to no one else being a physicist
who could explain how Schrodinger's theories applied to perl testing;
:^| ).
--------------
Got email back from user.
They said it looked like the program under test (being called from the test program), did not have the correct PERL5LIB set in the environment. It seems test programs are expected to copy %INC to PERL5LIB? That seems an odd requirement for a test script???
I.e. a Test harness driven by some script, that calls or invokes program under test with various inputs, and checks for correct output. At least that's how I'm used to testing, since you don't want your scripts to be in the same program as the program under test so the scripts won't be accidently mangled by the program under test. Is that not correct procedure? *wimper*?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: cpan test redux...better, but... still shouldn't be on CPAN
by Anonymous Monk on Nov 11, 2013 at 03:52 UTC | |
Re: cpan test redux...better, but...
by tobyink (Canon) on Nov 11, 2013 at 13:27 UTC |