You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by bb...@apache.org on 2019/08/01 20:32:19 UTC

[mesos] branch master updated (d8155f8 -> 03117c4)

This is an automated email from the ASF dual-hosted git repository.

bbannier pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git.


    from d8155f8  Backed `MockResourceProvider` by a process.
     new 5f5180d  Enabled parallel test runner in cmake build.
     new 8a56a1f  Enabled parallel test runner in cmake build.
     new 03117c4  Enabled parallel test runner in cmake build.

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 3rdparty/libprocess/src/tests/CMakeLists.txt |  2 +-
 3rdparty/stout/tests/CMakeLists.txt          |  2 +-
 cmake/MesosConfigure.cmake                   | 10 ++++++++++
 src/tests/CMakeLists.txt                     |  4 +++-
 4 files changed, 15 insertions(+), 3 deletions(-)


[mesos] 01/03: Enabled parallel test runner in cmake build.

Posted by bb...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

bbannier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git

commit 5f5180dc2168c85decfb97bb816a9fce4821261d
Author: Benjamin Bannier <bb...@apache.org>
AuthorDate: Thu Aug 1 21:32:24 2019 +0200

    Enabled parallel test runner in cmake build.
    
    Review: https://reviews.apache.org/r/69311/
---
 cmake/MesosConfigure.cmake | 10 ++++++++++
 src/tests/CMakeLists.txt   |  4 +++-
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/cmake/MesosConfigure.cmake b/cmake/MesosConfigure.cmake
index de7dc08..ca8d406 100644
--- a/cmake/MesosConfigure.cmake
+++ b/cmake/MesosConfigure.cmake
@@ -46,6 +46,16 @@ set(CMAKE_MACOSX_RPATH ON)
 ################################
 enable_testing()
 
+option(ENABLE_PARALLEL_TEST_EXECUTION "Execute tests in parallel" ON)
+if (ENABLE_PARALLEL_TEST_EXECUTION)
+  set(TEST_DRIVER
+    "${PROJECT_SOURCE_DIR}/support/mesos-gtest-runner.py" CACHE STRING
+    "GTest driver to use")
+  mark_as_advanced(TEST_DRIVER)
+else ()
+  unset(TEST_DRIVER CACHE)
+endif ()
+
 # CONFIGURE COMPILER.
 #####################
 include(CompilationConfigure)
diff --git a/src/tests/CMakeLists.txt b/src/tests/CMakeLists.txt
index faa0058..04c552a 100644
--- a/src/tests/CMakeLists.txt
+++ b/src/tests/CMakeLists.txt
@@ -382,4 +382,6 @@ endif ()
 
 # ADD TEST TARGET (runs when you do, e.g., `make check`).
 #########################################################
-add_test(NAME MesosTests COMMAND mesos-tests)
+add_test(NAME MesosTests COMMAND ${TEST_DRIVER} "${CMAKE_BINARY_DIR}/src/mesos-tests")
+set_property(TEST MesosTests PROPERTY ENVIRONMENT
+  "MESOS_GTEST_RUNNER_FLAGS=--sequential=*ROOT_* $ENV{MESOS_GTEST_RUNNER_FLAGS}")


[mesos] 03/03: Enabled parallel test runner in cmake build.

Posted by bb...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

bbannier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git

commit 03117c4be9bca39f0f1ebb5e3cefd5a34f3e340b
Author: Benjamin Bannier <bb...@apache.org>
AuthorDate: Thu Aug 1 21:32:30 2019 +0200

    Enabled parallel test runner in cmake build.
    
    Review: https://reviews.apache.org/r/69313/
---
 3rdparty/stout/tests/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/3rdparty/stout/tests/CMakeLists.txt b/3rdparty/stout/tests/CMakeLists.txt
index ff06607..e3291c7 100644
--- a/3rdparty/stout/tests/CMakeLists.txt
+++ b/3rdparty/stout/tests/CMakeLists.txt
@@ -110,4 +110,4 @@ target_include_directories(stout-tests PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
 
 # ADD TEST TARGET (runs when you do, e.g., `make check`).
 #########################################################
-add_test(NAME StoutTests COMMAND stout-tests)
+add_test(NAME StoutTests COMMAND ${TEST_DRIVER} stout-tests)


[mesos] 02/03: Enabled parallel test runner in cmake build.

Posted by bb...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

bbannier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git

commit 8a56a1ffbb4460a875a8553ab0429c472121e22b
Author: Benjamin Bannier <bb...@apache.org>
AuthorDate: Thu Aug 1 21:32:27 2019 +0200

    Enabled parallel test runner in cmake build.
    
    Review: https://reviews.apache.org/r/69312/
---
 3rdparty/libprocess/src/tests/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/3rdparty/libprocess/src/tests/CMakeLists.txt b/3rdparty/libprocess/src/tests/CMakeLists.txt
index 2bea6cf..b4ec990 100644
--- a/3rdparty/libprocess/src/tests/CMakeLists.txt
+++ b/3rdparty/libprocess/src/tests/CMakeLists.txt
@@ -113,7 +113,7 @@ if (ENABLE_SSL)
   add_dependencies(libprocess-tests ssl-client)
 endif ()
 
-add_test(NAME ProcessTests COMMAND libprocess-tests)
+add_test(NAME ProcessTests COMMAND ${TEST_DRIVER} libprocess-tests)
 
 # LIBPROCESS BENCHMARK TESTS.
 #############################