@@ -729,6 +729,7 @@ CPPFLAGS
729
729
LDFLAGS
730
730
CFLAGS
731
731
CC
732
+ enable_tap_tests
732
733
enable_dtrace
733
734
DTRACEFLAGS
734
735
DTRACE
@@ -808,6 +809,7 @@ enable_debug
808
809
enable_profiling
809
810
enable_coverage
810
811
enable_dtrace
812
+ enable_tap_tests
811
813
with_blocksize
812
814
with_segsize
813
815
with_wal_blocksize
@@ -1477,6 +1479,7 @@ Optional Features:
1477
1479
--enable-profiling build with profiling enabled
1478
1480
--enable-coverage build with coverage testing instrumentation
1479
1481
--enable-dtrace build with DTrace support
1482
+ --enable-tap-tests enable TAP tests (requires Perl and IPC::Run)
1480
1483
--enable-depend turn on automatic dependency tracking
1481
1484
--enable-cassert enable assertion checks (for debugging)
1482
1485
--disable-thread-safety disable thread-safety in client libraries
@@ -3465,6 +3468,34 @@ fi
3465
3468
3466
3469
3467
3470
3471
+ #
3472
+ # TAP tests
3473
+ #
3474
+
3475
+
3476
+ # Check whether --enable-tap-tests was given.
3477
+ if test " ${enable_tap_tests+set} " = set ; then :
3478
+ enableval=$enable_tap_tests ;
3479
+ case $enableval in
3480
+ yes)
3481
+ :
3482
+ ;;
3483
+ no)
3484
+ :
3485
+ ;;
3486
+ * )
3487
+ as_fn_error $? " no argument expected for --enable-tap-tests option" " $LINENO " 5
3488
+ ;;
3489
+ esac
3490
+
3491
+ else
3492
+ enable_tap_tests=no
3493
+
3494
+ fi
3495
+
3496
+
3497
+
3498
+
3468
3499
#
3469
3500
# Block size
3470
3501
#
@@ -14785,7 +14816,8 @@ done
14785
14816
#
14786
14817
# Check for test tools
14787
14818
#
14788
- for ac_prog in prove
14819
+ if test " $enable_tap_tests " = yes; then
14820
+ for ac_prog in prove
14789
14821
do
14790
14822
# Extract the first word of "$ac_prog", so it can be a program name with args.
14791
14823
set dummy $ac_prog ; ac_word=$2
@@ -14827,6 +14859,13 @@ fi
14827
14859
test -n " $PROVE " && break
14828
14860
done
14829
14861
14862
+ if test -z " $PROVE " ; then
14863
+ as_fn_error $? " prove not found" " $LINENO " 5
14864
+ fi
14865
+ if test -z " $PERL " ; then
14866
+ as_fn_error $? " Perl not found" " $LINENO " 5
14867
+ fi
14868
+ fi
14830
14869
14831
14870
# Thread testing
14832
14871
0 commit comments