summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-06-17 22:07:08 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-06-17 22:07:08 +0000
commit80ffb5f93608b52314883335103c8837769171e3 (patch)
treedaff8a40e4a9d5b8347132745006579458a6fb56 /t
parentae93639c6e66959ff84ce19b7b13b05a1ca356b7 (diff)
downloadperl-80ffb5f93608b52314883335103c8837769171e3.tar.gz
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
Diffstat (limited to 't')
-rwxr-xr-xt/TEST4
-rw-r--r--t/harness4
2 files changed, 4 insertions, 4 deletions
diff --git a/t/TEST b/t/TEST
index 148e9bd74a..ec8c8f2f15 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 (<MANI>) {
- if (m!^((?:ext|lib)/.+/(?:t/.+\.t)|test.pl)\s!) {
+ while (<MANI>) { # 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 011dc6329c..e5ec0d6a26 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 (<MANI>) {
- if (m!^((?:ext|lib)/.+/(?:t/.+\.t)|test.pl)\s!) {
+ while (<MANI>) { # similar code in t/TEST
+ if (m!^(ext/.+/([^/]+\.t|test\.pl)|lib/.+(\.t|test\.pl))\s!) {
push @tests, File::Spec->catdir($updir, $1);
}
}