libmicrohttpd2

HTTP server C library (MHD 2.x, alpha)
Log | Files | Refs | README | LICENSE

commit 0964c7a3c82376f6a7d534ab992a3bd9bcb5e6ad
parent e48b089a8319e527f35e8bad450ba635b1dd9097
Author: Evgeny Grin (Karlson2k) <k2k@drgrin.dev>
Date:   Tue,  7 Oct 2025 21:10:51 +0200

configure: added --enable-slow-tests parameter

Diffstat:
Mconfigure.ac | 15+++++++++++++++
1 file changed, 15 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac @@ -3289,6 +3289,18 @@ AS_CASE([${enable_heavy_tests}], ], [AC_MSG_ERROR([[Unknown parameter value: --enable-heavy-tests=${enable_heavy_tests}]])] ) +AC_ARG_ENABLE([[slow-tests]], + [ + AS_HELP_STRING([[--enable-slow-tests]], + [enable slow (time and/or CPU consuming) tests] + ) + ], + [ + AS_CASE([$enableval],[yes|no],[:], + [AC_MSG_ERROR([Unrecognised parameter value: --enable-slow-tests=$enableval])] + ) + ],[enable_slow_tests="no"] +) AS_VAR_IF([use_heavy_tests], ["yes"], [ HEAVY_TESTS_NOTPARALLEL='.NOTPARALLEL:' @@ -3301,6 +3313,8 @@ AS_VAR_IF([use_heavy_tests], ["yes"], HEAVY_TESTS_NOTPARALLEL=" " ] ) +AS_VAR_IF([enable_slow_tests], ["yes"], [AC_DEFINE([MHD_ENABLE_SLOW_TESTS], [1], [Define to 1 to enable long-running and CPU-intensive test paths.])]) +AM_CONDITIONAL([SLOW_TESTS],[test "x$enable_slow_tests" = "xyes"]) AM_CONDITIONAL([HEAVY_TESTS],[test "x$use_heavy_tests" = "xyes"]) AM_CONDITIONAL([VHEAVY_TESTS],[test "x$use_vheavy_tests" = "xyes"]) AM_CONDITIONAL([TESTS_STRESS_OS],[false]) @@ -8215,6 +8229,7 @@ AC_MSG_NOTICE([[${PACKAGE_NAME} ${PACKAGE_VERSION} Configuration Summary: [ Test-suite settings ] Test with libcurl: ${MSG_CURL} + Slow tests : ${enable_slow_tests} Heavy tests : ${use_heavy_tests_MSG} Fuzzing tests : ${run_zzuf_tests_MSG=no} ]])