Skip to content

Commit

Permalink
test/run_tests.pl: Add alias REPORT_FAILURES{,_PROGRESS} for VF and VFP
Browse files Browse the repository at this point in the history
Reviewed-by: Paul Dale <[email protected]>
(Merged from openssl#12279)
  • Loading branch information
DDvO committed Jul 3, 2020
1 parent a812549 commit 94fcec0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
5 changes: 3 additions & 2 deletions test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,13 @@ Full verbosity, showing full output of all successful and failed test cases
$ mms /macro=(V=1) test ! OpenVMS
$ nmake V=1 test # Windows

Verbosity on failed (sub-)tests only (`VERBOSE_FAILURE` or `VF`):
Verbosity on failed (sub-)tests only
(`VERBOSE_FAILURE` or `VF` or `REPORT_FAILURES`):

$ make test VF=1

Verbosity on failed (sub-)tests, in addition progress on succeeded (sub-)tests
(`VERBOSE_FAILURE_PROGRESS` or `VFP`):
(`VERBOSE_FAILURE_PROGRESS` or `VFP` or `REPORT_FAILURES_PROGRESS`):

$ make test VFP=1

Expand Down
10 changes: 6 additions & 4 deletions test/run_tests.pl
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@
use warnings;

# Recognise VERBOSE aka V which is common on other projects.
# Additionally, recognise VERBOSE_FAILURE aka VF.
# and recognise VERBOSE_FAILURE_PROGRESS aka VFP.
# Additionally, recognise VERBOSE_FAILURE aka VF aka REPORT_FAILURES
# and recognise VERBOSE_FAILURE_PROGRESS aka VFP aka REPORT_FAILURES_PROGRESS.
BEGIN {
$ENV{HARNESS_VERBOSE} = "yes" if $ENV{VERBOSE} || $ENV{V};
$ENV{HARNESS_VERBOSE_FAILURE} = "yes" if $ENV{VERBOSE_FAILURE} || $ENV{VF};
$ENV{HARNESS_VERBOSE_FAILURE} = "yes"
if $ENV{VERBOSE_FAILURE} || $ENV{VF} || $ENV{REPORT_FAILURES};
$ENV{HARNESS_VERBOSE_FAILURE_PROGRESS} = "yes"
if $ENV{VERBOSE_FAILURE_PROGRESS} || $ENV{VFP};
if ($ENV{VERBOSE_FAILURE_PROGRESS} || $ENV{VFP}
|| $ENV{REPORT_FAILURES_PROGRESS});
}

use File::Spec::Functions qw/catdir catfile curdir abs2rel rel2abs/;
Expand Down

0 comments on commit 94fcec0

Please sign in to comment.