From 05f22315081afa26d97ea6efd9892b3bc4a3429d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 19 May 2017 01:10:09 +0300 Subject: Allow select catch or doctest in unit tests binary only compilation. --- configure.ac | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index d8f039fa5..7436a52c3 100755 --- a/configure.ac +++ b/configure.ac @@ -610,13 +610,29 @@ AM_CONDITIONAL(ENABLE_UNITTESTS_DOCTEST, test x$unittests_doctest = xtrue) AC_ARG_ENABLE(unittestsbin, [ --enable-unittestsbin Turn on unit tests binary compilation only], [case "${enableval}" in - yes) unittestsbin_enabled=true + yes) + unittestsbin_enabled=true + unittestsbin_catch=true + unittestsbin_doctest=false + ;; + catch) + unittestsbin_enabled=true + unittestsbin_catch=true + unittestsbin_doctest=false + ;; + doctest) + unittestsbin_enabled=true + unittestsbin_catch=false + unittestsbin_doctest=true ;; - no) unittestsbin_enabled=false ;; + no) + unittestsbin_enabled=false ;; *) AC_MSG_ERROR(bad value ${enableval} for --enable-unittestsbin) ;; esac],[unittestsbin_enabled=false]) AM_CONDITIONAL(ENABLE_UNITTESTSBIN, test x$unittestsbin_enabled = xtrue) +AM_CONDITIONAL(ENABLE_UNITTESTSBIN_CATCH, test x$unittestsbin_catch = xtrue) +AM_CONDITIONAL(ENABLE_UNITTESTSBIN_DOCTEST, test x$unittestsbin_doctest = xtrue) # Enable tcmalloc AC_ARG_ENABLE(tcmalloc, -- cgit v1.2.3-70-g09d2