From: Nicholas Clark Date: Sun, 30 Aug 2009 10:16:40 +0000 (+0100) Subject: Move TestInit.pm to the top level of the distribution, to make it easier to use. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=30b6e59101b252c20a6b50b95203d1e2c6016604;p=p5sagit%2Fp5-mst-13.2.git Move TestInit.pm to the top level of the distribution, to make it easier to use. --- diff --git a/MANIFEST b/MANIFEST index 0c20ae4..e492462 100644 --- a/MANIFEST +++ b/MANIFEST @@ -3986,6 +3986,7 @@ t/comp/term.t See if more terms work t/comp/uproto.t See if the _ prototype works t/comp/use.t See if pragmata work t/comp/utf.t See if UTFs work +TestInit.pm Preamble library for tests t/harness Finer diagnostics from test suite thread.h Threading header time64.c 64 bit clean time.h (code) @@ -4406,7 +4407,6 @@ t/run/switchx2.aux Data for switchx.t t/run/switchx.aux Data for switchx.t t/run/switchx.t Test the -x switch t/TEST The regression tester -t/TestInit.pm Preamble library for core tests t/test.pl Simple testing library t/thread_it.pl Run regression tests in a new thread t/uni/cache.t See if Unicode swash caching works diff --git a/t/TestInit.pm b/TestInit.pm similarity index 100% rename from t/TestInit.pm rename to TestInit.pm diff --git a/t/TEST b/t/TEST index 912e4ef..0231332 100755 --- a/t/TEST +++ b/t/TEST @@ -20,7 +20,7 @@ my %dir_to_switch = (base => '', comp => '', run => '', - '../ext/File-Glob/t' => '-I. -MTestInit', # FIXME - tests assume t/ + '../ext/File-Glob/t' => '-I.. -MTestInit', # FIXME - tests assume t/ ); my %temp_no_core = @@ -198,13 +198,13 @@ sub _run_test { $return_dir = '../../t'; $lib = '../../lib'; $perl = '../../t/perl'; - $testswitch = "-I$return_dir -MTestInit=U2T,A"; + $testswitch = "-I../.. -MTestInit=U2T,A"; if ($temp_no_core{$ext_dir}) { $testswitch = $testswitch . ',NC'; } chdir $ext_dir or die "Can't chdir to '$ext_dir': $!"; } else { - $testswitch = '-I. -MTestInit'; # -T will remove . from @INC + $testswitch = '-I.. -MTestInit'; # -T will remove . from @INC } }