diff options
author | Max Maischein <corion@corion.net> | 2009-06-11 14:07:49 +0200 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2009-06-11 16:16:13 +0200 |
commit | 7019aa112619d31a5da7424af179f4edcd836a96 (patch) | |
tree | f31a3b35b771d4bb07db3aaf9926b209ea372ec8 /t | |
parent | cc650b8bbbaccae45531080d9ec8179f81184705 (diff) | |
download | perl-7019aa112619d31a5da7424af179f4edcd836a96.tar.gz |
Add t/benchmark to tests run if $ENV{PERL_BENCHMARK} is set
Diffstat (limited to 't')
-rwxr-xr-x | t/TEST | 2 | ||||
-rw-r--r-- | t/harness | 1 |
2 files changed, 3 insertions, 0 deletions
@@ -25,6 +25,7 @@ our $show_elapsed_time = $ENV{HARNESS_TIMER} || 0; my @argv = (); foreach my $idx (0..$#ARGV) { push( @argv, $ARGV[$idx] ), next unless $ARGV[$idx] =~ /^-(\S+)$/; + $::benchmark = 1 if $1 eq 'benchmark'; $::core = 1 if $1 eq 'core'; $::verbose = 1 if $1 eq 'v'; $::torture = 1 if $1 eq 'torture'; @@ -169,6 +170,7 @@ unless (@ARGV) { _find_tests('pod'); _find_tests('x2p'); _find_tests('japh') if $::torture; + _find_tests('t/benchmark') if $::benchmark or $ENV{PERL_BENCHMARK}; } } @@ -148,6 +148,7 @@ if (@ARGV) { my @next = qw(comp cmd run io op uni mro lib); push @next, 'japh' if $torture; push @next, 'win32' if $^O eq 'MSWin32'; + push @next, 'benchmark' if $ENV{PERL_BENCHMARK}; # Hopefully TAP::Parser::Scheduler will support this syntax soon. # my $next = { par => '{' . join (',', @next) . '}/*.t' }; my $next = { par => [ |