i ran into an interesting problem last night when trying to test a new distribution. i know the standard download tarball, unzip,
perl Makefile.PL, etc steps, but when running
make test the tests used the old version rather than the new version.
sample output of the tests:
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_h
+arness(0, 'blib/lib', 'blib/arch')" t/*.t
t/01_ini..........................ok
t/02_bad_constructor..............Odd number of elements in hash assig
+nment at /usr/local/lib/perl5/site_perl/5.6.1/ExtUtils/ModuleMaker.pm
+ line 232.
where the test output indicates usage of a previously installed version, while all of my new distro source is in
/opt/source/perl/
i'm not clear on what the UNINST=1 flag would do, but for now, i don't want to install the new dist, just make sure it passes all the tests ...
i must be missing something obvious.
UPDATE:
more for posterity than anything else, i got an answer of sorts to this on another mailing list (perl-qa).
older versions of ExtUtils::MakeMaker used relative paths in @INC ... so any tests w/ a chdir lose ./blib/lib in @INC, and tests will use a previously installed version (if it can be found in @INC) or fail outright.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.