Commit 9e946435 authored by jehan's avatar jehan
Browse files

add disable test configure option

parent 4b3df1b6
...@@ -224,8 +224,17 @@ else ...@@ -224,8 +224,17 @@ else
AC_DEFINE(HAVE_CU_CURSES,1,[defined when CU_curses_run_tests is available]) AC_DEFINE(HAVE_CU_CURSES,1,[defined when CU_curses_run_tests is available])
],[foo=bar],[$CUNIT_LIBS]) ],[foo=bar],[$CUNIT_LIBS])
fi fi
AC_ARG_ENABLE(tests,
[AS_HELP_STRING([--disable-tests], [Disable compilation of tests])],
[case "${enableval}" in
yes) tests_enabled=true ;;
no) tests_enabled=false ;;
*) AC_MSG_ERROR(bad value ${enableval} for --disable-tests) ;;
esac],
[tests_enabled=yes]
)
AM_CONDITIONAL(ENABLE_TESTS, test x$tests_enabled = xyes && test x$found_cunit = xyes)
AM_CONDITIONAL(BUILD_TESTS,test x$found_cunit = xyes)
# Checks for typedefs, structures, and compiler characteristics. # Checks for typedefs, structures, and compiler characteristics.
......
if BUILD_TESTS if ENABLE_TESTS
noinst_PROGRAMS=belle_sip_tester belle_sip_object_describe belle_sip_parse noinst_PROGRAMS=belle_sip_tester belle_sip_object_describe belle_sip_parse
TESTS=belle_sip_tester TESTS=belle_sip_tester
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment