1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-27 12:41:57 +03:00

Add configure --enable-tap-tests option

Don't skip the TAP tests anymore when IPC::Run is not found.  This will
fail normally now.
This commit is contained in:
Peter Eisentraut
2014-11-02 09:14:36 -05:00
parent 4ffa8806ee
commit 16381b2a78
6 changed files with 76 additions and 14 deletions

41
configure vendored
View File

@ -728,6 +728,7 @@ CPPFLAGS
LDFLAGS
CFLAGS
CC
enable_tap_tests
enable_dtrace
DTRACEFLAGS
DTRACE
@ -806,6 +807,7 @@ enable_debug
enable_profiling
enable_coverage
enable_dtrace
enable_tap_tests
with_blocksize
with_segsize
with_wal_blocksize
@ -1474,6 +1476,7 @@ Optional Features:
--enable-profiling build with profiling enabled
--enable-coverage build with coverage testing instrumentation
--enable-dtrace build with DTrace support
--enable-tap-tests enable TAP tests (requires Perl and IPC::Run)
--enable-depend turn on automatic dependency tracking
--enable-cassert enable assertion checks (for debugging)
--disable-thread-safety disable thread-safety in client libraries
@ -3436,6 +3439,34 @@ fi
#
# TAP tests
#
# Check whether --enable-tap-tests was given.
if test "${enable_tap_tests+set}" = set; then :
enableval=$enable_tap_tests;
case $enableval in
yes)
:
;;
no)
:
;;
*)
as_fn_error $? "no argument expected for --enable-tap-tests option" "$LINENO" 5
;;
esac
else
enable_tap_tests=no
fi
#
# Block size
#
@ -14655,7 +14686,8 @@ done
#
# Check for test tools
#
for ac_prog in prove
if test "$enable_tap_tests" = yes; then
for ac_prog in prove
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
@ -14697,6 +14729,13 @@ fi
test -n "$PROVE" && break
done
if test -z "$PROVE"; then
as_fn_error $? "prove not found" "$LINENO" 5
fi
if test -z "$PERL"; then
as_fn_error $? "Perl not found" "$LINENO" 5
fi
fi
# Thread testing