X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fharness;h=b5e3e872f1b1126fb1014e82ba8d67f082385bfc;hb=e26a497577f3ce7b9a4d9e1e62062839554dfd8f;hp=4fc77460e7164922113790454a80fb813da42e97;hpb=6234cb77344e822f4c34885de4971401d9a78b0b;p=p5sagit%2Fp5-mst-13.2.git diff --git a/t/harness b/t/harness index 4fc7746..b5e3e87 100644 --- a/t/harness +++ b/t/harness @@ -16,7 +16,7 @@ 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') { +if ($ARGV[0] && $ARGV[0] eq '-torture') { shift; $torture = 1; } @@ -54,6 +54,16 @@ sub _populate_hash { return map {$_, 1} split /\s+/, $_[0]; } +if ($ARGV[0] && $ARGV[0]=~/^-re/) { + if ($ARGV[0]!~/=/) { + shift; + $re=join "|",@ARGV; + @ARGV=(); + } else { + (undef,$re)=split/=/,shift; + } +} + if (@ARGV) { if ($^O eq 'MSWin32') { @tests = map(glob($_),@ARGV); @@ -108,6 +118,8 @@ if (@ARGV) { if ($^O eq 'MSWin32') { s,\\,/,g for @tests; } +@tests=grep /$re/, @tests + if $re; Test::Harness::runtests @tests; exit(0) unless -e "../testcompile";