aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2018-04-06 00:32:00 +0200
committerFlorian Dold <florian.dold@gmail.com>2018-04-06 00:32:00 +0200
commitd880b374d01a031f8354bbaab3036544629b87ab (patch)
treed81b5984822d90a2bbf7eb2bc70b743a6642a896
parentb46239b12f00e64888d4a8d35c019c850e740840 (diff)
put twister tests behind --enable-experimentalv0.5.0
-rw-r--r--configure.ac10
-rw-r--r--src/lib/Makefile.am2
2 files changed, 12 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 9cc54367..fc046d85 100644
--- a/configure.ac
+++ b/configure.ac
@@ -316,6 +316,16 @@ AM_CONDITIONAL([HAVE_TWISTER], [true])
fi
+# should experimental code be compiled (code that may not yet compile / have passing test cases)?
+AC_MSG_CHECKING(whether to compile experimental code)
+AC_ARG_ENABLE([experimental],
+ [AS_HELP_STRING([--enable-experimental], [enable compiling experimental code])],
+ [enable_experimental=${enableval}],
+ [enable_experimental=no])
+AC_MSG_RESULT($enable_experimental)
+AM_CONDITIONAL([HAVE_EXPERIMENTAL], [test "x$enable_experimental" = "xyes"])
+
+
AC_CONFIG_FILES([Makefile
doc/Makefile
src/Makefile
diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am
index 9235863b..1189abeb 100644
--- a/src/lib/Makefile.am
+++ b/src/lib/Makefile.am
@@ -78,9 +78,11 @@ check_PROGRAMS = \
test_merchant_api_new \
test_merchant_api
+if HAVE_EXPERIMENTAL
if HAVE_TWISTER
check_PROGRAMS += test_merchant_api_twisted
endif
+endif
endif