From: Jarkko Hietaniemi Date: Sun, 17 Jun 2001 22:07:08 +0000 (+0000) Subject: Change the scan policy of the *.t and test.pl files, X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=80ffb5f93608b52314883335103c8837769171e3;p=p5sagit%2Fp5-mst-13.2.git Change the scan policy of the *.t and test.pl files, now the *.t do not need to live in a t/ directory. p4raw-id: //depot/perl@10671 --- diff --git a/t/TEST b/t/TEST index 148e9bd..ec8c8f2 100755 --- a/t/TEST +++ b/t/TEST @@ -69,8 +69,8 @@ unless (@ARGV) { } my $mani = File::Spec->catdir($updir, "MANIFEST"); if (open(MANI, $mani)) { - while () { - if (m!^((?:ext|lib)/.+/(?:t/.+\.t)|test.pl)\s!) { + while () { # similar code in t/harness + if (m!^(ext/.+/([^/]+\.t|test\.pl)|lib/.+(\.t|test\.pl))\s!) { push @ARGV, $1; $OVER{$1} = File::Spec->catdir($updir, $1); } diff --git a/t/harness b/t/harness index 011dc63..e5ec0d6 100644 --- a/t/harness +++ b/t/harness @@ -44,8 +44,8 @@ if (@ARGV) { my $updir = File::Spec->updir; my $mani = File::Spec->catdir(File::Spec->updir, "MANIFEST"); if (open(MANI, $mani)) { - while () { - if (m!^((?:ext|lib)/.+/(?:t/.+\.t)|test.pl)\s!) { + while () { # similar code in t/TEST + if (m!^(ext/.+/([^/]+\.t|test\.pl)|lib/.+(\.t|test\.pl))\s!) { push @tests, File::Spec->catdir($updir, $1); } }