mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
build: New configure option --disable-tests
* configure.ac: Add option --disable-tests. Print warnings in the summary. (DISABLE_TESTS): New am_conditional. -- GnuPG-bug-id: 4960
This commit is contained in:
parent
4c54a0e34f
commit
32aac55875
9 changed files with 57 additions and 2 deletions
26
configure.ac
26
configure.ac
|
@ -1730,6 +1730,16 @@ if test "$run_all_tests" = "yes"; then
|
|||
[Defined if "make check" shall run all tests])
|
||||
fi
|
||||
|
||||
#
|
||||
# Configure option --disable-tests
|
||||
#
|
||||
AC_MSG_CHECKING([whether tests should be run])
|
||||
AC_ARG_ENABLE(tests,
|
||||
AC_HELP_STRING([--disable-tests],
|
||||
[do not run any tests]),
|
||||
run_tests=$enableval, run_tests=yes)
|
||||
AC_MSG_RESULT($run_tests)
|
||||
|
||||
#
|
||||
# We do not want support for the GNUPG_BUILDDIR environment variable
|
||||
# in a released version. However, our regression tests suite requires
|
||||
|
@ -1791,6 +1801,7 @@ AM_CONDITIONAL(BUILD_SYMCRYPTRUN, test "$build_symcryptrun" = "yes")
|
|||
AM_CONDITIONAL(BUILD_GPGTAR, test "$build_gpgtar" = "yes")
|
||||
AM_CONDITIONAL(BUILD_WKS_TOOLS, test "$build_wks_tools" = "yes")
|
||||
|
||||
AM_CONDITIONAL(DISABLE_TESTS, test "$run_tests" != yes)
|
||||
AM_CONDITIONAL(ENABLE_CARD_SUPPORT, test "$card_support" = yes)
|
||||
AM_CONDITIONAL(NO_TRUST_MODELS, test "$use_trust_models" = no)
|
||||
AM_CONDITIONAL(USE_TOFU, test "$use_tofu" = yes)
|
||||
|
@ -2089,3 +2100,18 @@ cat <<G10EOF
|
|||
|
||||
G10EOF
|
||||
fi
|
||||
if test "${build_gpg}" != "yes"; then
|
||||
cat <<G10EOF
|
||||
Warning: The component "gpg" is used by other components as
|
||||
well as for the test suite. You have disabled
|
||||
this component and thus other things won't work.
|
||||
|
||||
G10EOF
|
||||
fi
|
||||
if test "${run_tests}" != "yes"; then
|
||||
cat <<G10EOF
|
||||
Warning: The use of the test suite has been disabled!
|
||||
This is in almost all cases a bad idea. Take care.
|
||||
|
||||
G10EOF
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue