From 48b92ec762250dace650e973b89ce0e2d66f697e Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Thu, 10 Dec 2020 09:10:58 +0100 Subject: [PATCH] Merge #20609: configure: output notice that test binary is disabled by fuzzing 904d875cf5aecc337daa6a2243a803033cf4eee3 configure: output notice that test binary is disabled by fuzzing (Andrew Poelstra) Pull request description: I wasted a bit of time today running a stale `test_bitcoin` and not understanding why, until I remembered that I'd ./configured my working directory with --enable-fuzz. Top commit has no ACKs. Tree-SHA512: 6cbe30547332114ad3fe61c67e224f5a28aac4b1b58e0acecb29cb04f5a34f792c927797aa8000449aae076435bd45acf209b7323b0b48fa971705d6ed3e6529 --- configure.ac | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index 508ded9d0a..c7fdcb60b7 100644 --- a/configure.ac +++ b/configure.ac @@ -1685,7 +1685,11 @@ AM_CONDITIONAL([ENABLE_ZMQ], [test "x$use_zmq" = "xyes"]) AC_MSG_CHECKING([whether to build test_dash]) if test x$use_tests = xyes; then - AC_MSG_RESULT([yes]) + if test "x$enable_fuzz" = "xyes"; then + AC_MSG_RESULT([no, because fuzzing is enabled]) + else + AC_MSG_RESULT([yes]) + fi BUILD_TEST="yes" else AC_MSG_RESULT([no]) @@ -1877,11 +1881,13 @@ if test x$bitcoin_enable_qt != xno; then echo " with qr = $use_qr" fi echo " with zmq = $use_zmq" -echo " with test = $use_tests" -echo " with bench = $use_bench" -if test x$use_tests != xno; then - echo " with fuzz = $enable_fuzz" +if test x$enable_fuzz == xno; then + echo " with test = $use_tests" +else + echo " with test = not building test_dash because fuzzing is enabled" + echo " with fuzz = $enable_fuzz" fi +echo " with bench = $use_bench" echo " with upnp = $use_upnp" echo " with natpmp = $use_natpmp" echo " use asm = $use_asm"