have option to disable expensive tests

This commit is contained in:
Christian Grothoff 2015-09-28 22:28:09 +02:00
parent 0b5fc99687
commit 03fb570a9c
2 changed files with 15 additions and 1 deletions

View File

@ -57,6 +57,16 @@ AC_DEFINE_UNQUOTED([NEED_LIBGCRYPT_VERSION], ["$need_libgcrypt_version"],
AM_PATH_LIBGCRYPT([$need_libgcrypt_version]) AM_PATH_LIBGCRYPT([$need_libgcrypt_version])
# should expensive tests be run?
AC_MSG_CHECKING(whether to run expensive tests)
AC_ARG_ENABLE([expensivetests],
[AS_HELP_STRING([--enable-expensivetests], [enable running expensive testcases])],
[enable_expensive=${enableval}],
[enable_expensive=no])
AC_MSG_RESULT($enable_expensive)
AM_CONDITIONAL([HAVE_EXPENSIVE_TESTS], [test "x$enable_expensive" = "xyes"])
if test "$wallet_only" != yes if test "$wallet_only" != yes
then then

View File

@ -36,7 +36,11 @@ taler_mint_httpd_SOURCES += \
endif endif
check_SCRIPTS = \ check_SCRIPTS = \
test_taler_mint_httpd.sh \ test_taler_mint_httpd.sh
if HAVE_EXPENSIVE_TESTS
check_SCRIPTS += \
test_taler_mint_httpd_afl.sh test_taler_mint_httpd_afl.sh
endif
TESTS = $(check_SCRIPTS) TESTS = $(check_SCRIPTS)