diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-05-18 22:51:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-05-18 22:53:01 +0300 |
commit | 40de3bee0278d6584561a827123bc342934adccb (patch) | |
tree | 460ba68f29ec25377ef1971989c4c46e507ea3da /configure.ac | |
parent | dffd0a4a8e99196ad27f8fde2430b09dd29cac57 (diff) | |
download | plus-40de3bee0278d6584561a827123bc342934adccb.tar.gz plus-40de3bee0278d6584561a827123bc342934adccb.tar.bz2 plus-40de3bee0278d6584561a827123bc342934adccb.tar.xz plus-40de3bee0278d6584561a827123bc342934adccb.zip |
Add support for additional unit test library doctest.
Diffstat (limited to 'configure.ac')
-rwxr-xr-x | configure.ac | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index f0ac91bbe..d8f039fa5 100755 --- a/configure.ac +++ b/configure.ac @@ -582,13 +582,29 @@ AM_CONDITIONAL(ENABLE_MEM_DEBUG, test x$memdebug_enabled = xtrue) AC_ARG_ENABLE(unittests, [ --enable-unittests Turn on unit tests], [case "${enableval}" in - yes) unittests_enabled=true + yes) + unittests_enabled=true + unittests_catch=true + unittests_doctest=false + ;; + catch) + unittests_enabled=true + unittests_catch=true + unittests_doctest=false + ;; + doctest) + unittests_enabled=true + unittests_catch=false + unittests_doctest=true + ;; + no) unittests_enabled=false ;; - no) unittests_enabled=false ;; *) AC_MSG_ERROR(bad value ${enableval} for --enable-unittests) ;; esac],[unittests_enabled=false]) AM_CONDITIONAL(ENABLE_UNITTESTS, test x$unittests_enabled = xtrue) +AM_CONDITIONAL(ENABLE_UNITTESTS_CATCH, test x$unittests_catch = xtrue) +AM_CONDITIONAL(ENABLE_UNITTESTS_DOCTEST, test x$unittests_doctest = xtrue) # Enable unit tests binaries only AC_ARG_ENABLE(unittestsbin, |