Allow for deeper t/ and also a single test.pl.
Jarkko Hietaniemi [Sat, 16 Jun 2001 18:16:28 +0000 (18:16 +0000)]
p4raw-id: //depot/perl@10637

t/TEST
t/harness

diff --git a/t/TEST b/t/TEST
index 5400999..5cd1927 100755 (executable)
--- a/t/TEST
+++ b/t/TEST
@@ -70,7 +70,7 @@ unless (@ARGV) {
     my $mani = File::Spec->catdir($updir, "MANIFEST");
     if (open(MANI, $mani)) {
         while (<MANI>) {
-           if (m!^((?:ext|lib)/.+/t/[^/]+\.t)\s!) {
+           if (m!^((?:ext|lib)/.+/(?:t/.+\.t)|test.pl)\s!) {
                push @ARGV, $1;
                $OVER{$1} = File::Spec->catdir($updir, $1);
            }
index d5335e7..011dc63 100644 (file)
--- a/t/harness
+++ b/t/harness
@@ -45,7 +45,7 @@ if (@ARGV) {
     my $mani  = File::Spec->catdir(File::Spec->updir, "MANIFEST");
     if (open(MANI, $mani)) {
         while (<MANI>) {
-           if (m!^((?:ext|lib)/.+/t/[^/]+\.t)\s!) {
+           if (m!^((?:ext|lib)/.+/(?:t/.+\.t)|test.pl)\s!) {
                push @tests, File::Spec->catdir($updir, $1);
            }
        }