From f896df6b8ed6b3751086d36e9738a143365f968c Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sun, 24 Apr 2016 22:24:44 +0200 Subject: distcheck/tests: Add the referenced osmoappdesc.py for testing distcheck fails because the file is not present. Write it out to get our standard vty checking to work. Add simple Makefile and call it. --- configure.ac | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index d4a39a8..0b42951 100644 --- a/configure.ac +++ b/configure.ac @@ -11,7 +11,27 @@ PKG_CHECK_MODULES(LIBOSMOCORE, libosmocore >= 0.8.0) PKG_CHECK_MODULES(LIBOSMOVTY, libosmovty) PKG_CHECK_MODULES(SOFIASIP, sofia-sip-ua-glib >= 1.12.0) +AC_ARG_ENABLE([vty_tests], + AC_HELP_STRING([--enable-vty-tests], + [Include the VTY/CTRL tests in make check (deprecated) + [default=no]]), + [enable_ext_tests="$enableval"],[enable_ext_tests="no"]) +AC_ARG_ENABLE([external_tests], + AC_HELP_STRING([--enable-external-tests], + [Include the VTY/CTRL tests in make check [default=no]]), + [enable_ext_tests="$enableval"],[enable_ext_tests="no"]) +if test "x$enable_ext_tests" = "xyes" ; then + AM_PATH_PYTHON + AC_CHECK_PROG(OSMOTESTEXT_CHECK,osmotestvty.py,yes) + if test "x$OSMOTESTEXT_CHECK" != "xyes" ; then + AC_MSG_ERROR([Please install osmocom-python to run the VTY/CTRL tests.]) + fi +fi +AC_MSG_CHECKING([whether to enable VTY/CTRL tests]) +AC_MSG_RESULT([$enable_ext_tests]) +AM_CONDITIONAL(ENABLE_EXT_TESTS, test "x$enable_ext_tests" = "xyes") AC_OUTPUT( src/Makefile + tests/Makefile Makefile) -- cgit v1.2.3