Skip to content

Commit 56b6ef8

Browse files
committed
Honor PROVE_FLAGS environment setting
On MSVC builds and on back branches that means removing the hardcoded --verbose setting. On master for Unix that means removing the empty setting in the global Makefile so that the value can be acquired from the environment as well as from the make arguments. Backpatch to 9.4 where we introduced TAP tests
1 parent b757e01 commit 56b6ef8

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/Makefile.global.in

+2-2
Original file line numberDiff line numberDiff line change
@@ -339,8 +339,8 @@ PROVE = @PROVE@
339339
# There are common routines in src/test/perl, and some test suites have
340340
# extra perl modules in their own directory.
341341
PG_PROVE_FLAGS = -I $(top_srcdir)/src/test/perl/ -I $(srcdir)
342-
# For more info, add to your make line: PROVE_FLAGS='--verbose'
343-
PROVE_FLAGS =
342+
# User-supplied prove flags such as --verbose can be provided in PROVE_FLAGS.
343+
344344

345345
# prepend to path if already set, else just set it
346346
define add_to_path

src/tools/msvc/vcregress.pl

+4-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,10 @@ sub tap_check
181181
my $dir = shift;
182182
chdir $dir;
183183

184-
my @args = ("prove", "--verbose", "t/*.pl");
184+
my @flags;
185+
@flags = split(/\s+/,$ENV{PROVE_FLAGS}) if exists $ENV{PROVE_FLAGS};
186+
187+
my @args = ("prove", @flags, "t/*.pl");
185188

186189
# adjust the environment for just this test
187190
local %ENV = %ENV;

0 commit comments

Comments
 (0)