From e2760528720bf060a1f8246c3c77820e4aed7448 Mon Sep 17 00:00:00 2001 From: Nicholas Clark Date: Tue, 1 Nov 2011 22:48:41 +0100 Subject: [PATCH] In bisect.pl, provide a default test for --validate, and summary output. If no test case is specified for --validate, use TEST to run t/base/*.t We can't run minitest because some tests fail on earlier versions, and bisect-runner.pl intentionally doesn't patch any regression tests. --- Porting/bisect-runner.pl | 3 +++ Porting/bisect.pl | 14 ++++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/Porting/bisect-runner.pl b/Porting/bisect-runner.pl index d6e9c23..194fbb9 100755 --- a/Porting/bisect-runner.pl +++ b/Porting/bisect-runner.pl @@ -418,6 +418,9 @@ OS/CPU/compiler combination. For example ../perl/Porting/bisect.pl --validate -le 'print "Hello from $]"' +If no testcase is specified, the default is to use F to run +F + =item * --check-args diff --git a/Porting/bisect.pl b/Porting/bisect.pl index d49223d..8284005 100755 --- a/Porting/bisect.pl +++ b/Porting/bisect.pl @@ -12,6 +12,9 @@ unshift @ARGV, '--help' unless GetOptions('start=s' => \$start, 'end=s' => \$end, validate => \$validate); +@ARGV = ('--', 'sh', '-c', 'cd t && ./perl TEST base/*.t') + if $validate && !@ARGV; + my $runner = $0; $runner =~ s/bisect\.pl/bisect-runner.pl/; @@ -63,11 +66,18 @@ sub validate { die "Runner returned $ret, not 0 for revision $commit" if $ret; system 'git clean -dxf