saintmike has asked for the wisdom of the Perl Monks concerning the following question:
The 'make test' target in ExtUtils::MakeMaker calls the test suite via
making sure that @INC is set correctly in */*.t scripts called subsequently.test_harness(0, 'blib/lib', 'blib/arch')
But what if one of these scripts in t/*.t calls another script (e.g. a bin script that's part of the module distro and needs to be tested), how do I make sure that it gets called with the correct -I setting, in order to find my yet-to-be-installed modules? I was thinking
but setting -I manually to "blib/lib" breaks encapsulation, Test::Harness should provide a setting for that, but I can't find it. Any pointers?system( $^X, "-Iblib/lib", "path/scriptname" );
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Test::Harness: Calling a script with proper @INC
by chromatic (Archbishop) on Jul 17, 2011 at 17:08 UTC | |
Re: Test::Harness: Calling a script with proper @INC
by sundialsvc4 (Abbot) on Jul 18, 2011 at 03:45 UTC | |
Re: Test::Harness: Calling a script with proper @INC
by Anonymous Monk on Jul 18, 2011 at 06:22 UTC |
Back to
Seekers of Perl Wisdom