You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by ti...@apache.org on 2016/10/12 17:46:39 UTC
[2/5] mesos git commit: Added configure option for Mesos test runner.
Added configure option for Mesos test runner.
Review: https://reviews.apache.org/r/51716/
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/d996d78c
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/d996d78c
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/d996d78c
Branch: refs/heads/master
Commit: d996d78c4010c4d8319c102a5dfaf7f71b9c198a
Parents: 5ccacf5
Author: Benjamin Bannier <be...@mesosphere.io>
Authored: Wed Oct 12 18:58:32 2016 +0200
Committer: Till Toenshoff <to...@me.com>
Committed: Wed Oct 12 18:58:32 2016 +0200
----------------------------------------------------------------------
configure.ac | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/d996d78c/configure.ac
----------------------------------------------------------------------
diff --git a/configure.ac b/configure.ac
index 034bb91..015255e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -253,6 +253,9 @@ AC_ARG_ENABLE([zlib],
will be far less responsive; not recommended]),
[enable_zlib=no], [enable_zlib=yes])
+AC_ARG_ENABLE([parallel_test_execution],
+ AS_HELP_STRING([--enable-parallel-test-execution],
+ [execute tests in parallel where possible]))
###############################################################################
# Optional packages.
@@ -544,7 +547,7 @@ esac
###############################################################################
-# Miscellaneous flags/library/tool checks
+# Miscellaneous flags/library/tool checks.
###############################################################################
AC_ARG_VAR([JAVA_HOME], [location of Java Development Kit (JDK)])
@@ -559,6 +562,8 @@ AC_ARG_VAR([PROTOBUF_JAR], [full path to protobuf jar on prefixed builds])
AC_ARG_VAR([PYTHON], [which Python interpreter to use])
+AC_ARG_VAR([TEST_DRIVER], [executable and arguments of a test driver])
+
# Check for pthreads (uses m4/ax_pthread.m4).
AX_PTHREAD([], [AC_MSG_ERROR([failed to find pthreads])])
@@ -605,6 +610,17 @@ AM_CONDITIONAL([INSTALL_TESTS], [test x"$enable_tests_install" = "xyes"])
AS_IF([test x"$enable_tests_install" = "xyes"],
[AC_DEFINE([MESOS_INSTALL_TESTS], [1])])
+# If we use our own test runner to parallelize gtests we can run
+# everything but ROOT tests in parallel.
+# We here set up `TEST_DRIVER` to contain an unexpanded automake
+# variable name; this allows us to reuse the test runner to run bundled
+# 3rdparty checks. The special quoting ensures that this containing a
+# space is not expanded by autoconf.
+# TODO(bbannier): Make this more readible by using autoconf/m4 magic.
+AS_IF([test "x$enable_parallel_test_execution" = "xyes"],
+ [AC_SUBST([TEST_DRIVER],
+ '${abs_top_srcdir}/support/mesos-gtest-runner.py'[' --sequential='*ROOT_*'']]))
+
# Check for libunwind, and link it in if present.
if test "x$OS_NAME" = "xfreebsd"; then
AC_CHECK_LIB(execinfo, backtrace, LIBS="$LIBS -lexecinfo")