summaryrefslogtreecommitdiff
path: root/TestInit.pm
Commit message (Collapse)AuthorAgeFilesLines
* Two small tidying refactors for TestInit.pmNicholas Clark2011-06-221-2/+3
| | | | | | Make the order of backslash and forward slash in character classes consistent. Move the top level modification of $0 adjacent to the top level modification of $ENV{PERL_CORE}.
* Fix a (back)slash bug in a regex, added with the regex itself.Nicholas Clark2011-06-221-1/+1
| | | | | | | | | 8fcfece7bab67639 added code to TestInit to set the CWD and @INC for tests in ext. However, the regex used to distinguish where a test was had one forward slash where a backslash should have been, hence the intended Win32 support would not work. I'm assuming that no-one has noticed this because no-one has tried to run tests from the command line on Win32 directly, or if they have they always use forward slashes in their pathnames.
* In TestInit, eliminate @new_inc, by assigning to @INC directly.Nicholas Clark2011-06-221-15/+11
| | | | | | To decide whether to default, we can test $set_opt instead of whether @new_inc is empty, as all places that assign to @new_inc (now to @INC) also set $set_opt.
* In TestInit, inline new_inc() and set_opt() into import(), their only caller.Nicholas Clark2011-06-221-29/+20
|
* Add an import option 'T' to TestInit, for tests that run at the top level.Nicholas Clark2011-06-221-0/+5
| | | | | This sets @INC to 'lib, and unless we're already at the top level will chdir '..' [on the assumption that we are starting in t].
* In TestInit.pm, move the default chdir and @INC code into import().Nicholas Clark2011-06-221-28/+36
| | | | | | The behaviour is consistent with previous behaviour, as the equivalent of the new code used to be run at the top level, hence would happen (unconditionally) before import() was called.
* In TestInit.pm, merge two substitutions into one.Nicholas Clark2011-06-221-3/+2
| | | | | Both are intended to transform ./perl into ../../perl, one for forward slashes, one for backslashes.
* When running tests from lib/, set @INC and $ENV{PERL5LIB} to ../libNicholas Clark2011-02-071-1/+4
| | | | | | This ensures (reasonable) consistency with tests in cpan/, dist/ and ext/, which set this to qw(../../lib ../../t), but are not from t/, hence don't have t/ implicitly in @INC as '.'
* Support building extensions in dist/ as well as cpan/ and ext/Nicholas Clark2009-09-261-1/+1
|
* TestInit at the command line should treat tests in cpan/ the same as in ext/Nicholas Clark2009-09-261-1/+1
|
* Anchor a regexp, else paths including /Text/ are mistaken for tests in ext/Nicholas Clark2009-08-311-1/+1
|
* Correctly munge the path of $^X when running interactively, and set PERL5LIB.Nicholas Clark2009-08-301-2/+3
|
* Move TestInit.pm to the top level of the distribution, to make it easier to use.Nicholas Clark2009-08-301-0/+111