summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorPaul Johnson <paul@pjcj.net>2001-08-29 02:11:38 +0200
committerAbhijit Menon-Sen <ams@wiw.org>2001-08-28 23:54:57 +0000
commit5a6e071df79535e06d0295e4c341673b1eeb8efc (patch)
tree47457e6117447f9ead38ced1da152010f977c9ec /t
parent17639bde299d25109390c82720c805c9f43b1309 (diff)
downloadperl-5a6e071df79535e06d0295e4c341673b1eeb8efc.tar.gz
make coretest
Message-Id: <20010829001138.B12169@pjcj.net> (Applied without the change to perlhack.pod. This should probably stay undocumented.) p4raw-id: //depot/perl@11773
Diffstat (limited to 't')
-rwxr-xr-xt/TEST12
1 files changed, 9 insertions, 3 deletions
diff --git a/t/TEST b/t/TEST
index 0a63f0e5f0..64da39ca4b 100755
--- a/t/TEST
+++ b/t/TEST
@@ -9,6 +9,7 @@ $| = 1;
if ($#ARGV >= 0) {
foreach my $idx (0..$#ARGV) {
next unless $ARGV[$idx] =~ /^-(\S+)$/;
+ $core = 1 if $1 eq 'core';
$verbose = 1 if $1 eq 'v';
$with_utf= 1 if $1 eq 'utf8';
if ($1 =~ /^deparse(,.+)?$/) {
@@ -64,15 +65,20 @@ sub _find_tests {
}
unless (@ARGV) {
- foreach my $dir (qw(base comp cmd run io op lib)) {
+ foreach my $dir (qw(base comp cmd run io op)) {
_find_tests($dir);
}
+ _find_tests("lib") unless $core;
my $mani = File::Spec->catdir($updir, "MANIFEST");
if (open(MANI, $mani)) {
while (<MANI>) { # similar code in t/harness
if (m!^(ext/\S+/([^/]+\.t|test\.pl)|lib/\S+?(\.t|test\.pl))\s!) {
- push @ARGV, $1;
- $OVER{$1} = File::Spec->catdir($updir, $1);
+ $t = $1;
+ if (!$core || $t =~ m!^lib/[a-z]!)
+ {
+ push @ARGV, $t;
+ $OVER{$t} = File::Spec->catdir($updir, $t);
+ }
}
}
} else {