summaryrefslogtreecommitdiff
path: root/t/harness
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-05-10 13:48:10 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-05-10 13:48:10 +0000
commite018f8be847d79ec3f2a470a400d481ec2d7bbd6 (patch)
tree7c969788feea58f88b8116c7e454c1272a65dbf2 /t/harness
parent436c6dd385a3b29cadf4fa091af1c55eed665e29 (diff)
downloadperl-e018f8be847d79ec3f2a470a400d481ec2d7bbd6.tar.gz
Don't do JAPHs unless doing "make torturetest".
Document the less obvious make test targets. p4raw-id: //depot/perl@16534
Diffstat (limited to 't/harness')
-rw-r--r--t/harness8
1 files changed, 8 insertions, 0 deletions
diff --git a/t/harness b/t/harness
index 1a15ebcca2..fafba45c2a 100644
--- a/t/harness
+++ b/t/harness
@@ -9,11 +9,18 @@ BEGIN {
$ENV{PERL5LIB} = '../lib'; # so children will see it too
}
+my $torture; # torture testing?
+
use Test::Harness;
$Test::Harness::switches = ""; # Too much noise otherwise
$Test::Harness::verbose = shift if @ARGV && $ARGV[0] eq '-v';
+if ($ARGV[0] eq '-torture') {
+ shift;
+ $torture = 1;
+}
+
# Let tests know they're running in the perl core. Useful for modules
# which live dual lives on CPAN.
$ENV{PERL_CORE} = 1;
@@ -57,6 +64,7 @@ if (@ARGV) {
push @tests, <op/*.t>;
push @tests, <uni/*.t>;
push @tests, <lib/*.t>;
+ push @tests, <japh/*.t> if $torture;
push @tests, <win32/*.t> if $^O eq 'MSWin32';
use File::Spec;
my $updir = File::Spec->updir;