now the *.t do not need to live in a t/ directory.
p4raw-id: //depot/perl@10671
}
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);
}
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);
}
}