Commit ac4e75e4 authored by Ben Boeckel's avatar Ben Boeckel Committed by Kitware Robot

Merge topic 'run-cmb-tests'

e588fc66 cmb, smtk: add options for where their data is stored
7637021b cmb: add an option to run CMB tests from the superbuild
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Acked-by: default avatarYumin Yuan <yumin.yuan@kitware.com>
Merge-request: !42
parents a2a6b482 e588fc66
function (subdirs subdir)
if (implicit_root)
set(old_implicit_root "${implicit_root}")
set(implicit_root "${implicit_root}${subdir}/")
endif ()
_subdirs("${old_implicit_root}${subdir}")
endfunction ()
set(extra_ctest_dirs "@extra_ctest_dirs@")
foreach (extra_ctest_dir IN LISTS extra_ctest_dirs)
set(implicit_root "${extra_ctest_dir}/")
include("${extra_ctest_dir}/CTestTestfile.cmake")
endforeach ()
set(implicit_root)
......@@ -323,3 +323,30 @@ option(NIGHTLY_BINARY_TESTING "Run Nightly-Binary CMB Testing" OFF)
if (NIGHTLY_BINARY_TESTING)
add_subdirectory(tests)
endif()
set(extra_ctest_dirs)
option(CMB_RUN_TESTS "Run CMB tests from the superbuild" ON)
if (TARGET cmb AND CMB_RUN_TESTS)
set(cmb_binary_dir "<BINARY_DIR>")
_ep_replace_location_tags(cmb cmb_binary_dir)
list(APPEND extra_ctest_dirs "${cmb_binary_dir}")
endif ()
option(SMTK_RUN_TESTS "Run SMTK tests from the superbuild" ON)
if (TARGET smtk AND SMTK_RUN_TESTS)
set(smtk_binary_dir "<BINARY_DIR>")
_ep_replace_location_tags(smtk smtk_binary_dir)
list(APPEND extra_ctest_dirs "${smtk_binary_dir}")
endif ()
if (extra_ctest_dirs)
configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/CMake/cmb_testing_trampoline.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/cmb_testing_trampoline.cmake"
@ONLY)
set_property(
DIRECTORY "${CMAKE_CURRENT_LIST_DIR}"
PROPERTY
TEST_INCLUDE_FILE "${CMAKE_CURRENT_BINARY_DIR}/cmb_testing_trampoline.cmake")
endif ()
......@@ -8,6 +8,8 @@ if (__BUILDBOT_INSTALL_LOCATION)
set(vtk_dir <INSTALL_DIR>/lib/cmake/paraview-4.3)
endif ()
set(CMB_TEST_DATA_ROOT "" CACHE PATH "Location of CMB's testing data")
add_external_project_or_just_build_dependencies(cmb
DEPENDS boost remus vxl kml gdal qt python paraview molequeue smtk
DEPENDS_OPTIONAL moab triangle
......@@ -20,6 +22,7 @@ add_external_project_or_just_build_dependencies(cmb
-DVTK_DIR:PATH=${vtk_dir}
-DMoleQueue_DIR:PATH=<INSTALL_DIR>
-DCMB_TEST_PLUGIN_PATHS:STRING=<INSTALL_DIR>/${smtk_libdir}
-DCMB_TEST_DATA_ROOT:PATH=${CMB_TEST_DATA_ROOT}
#specify semi-colon separated paths for session plugins
-DCMB_TEST_PLUGIN_PATHS:STRING=<INSTALL_DIR>/lib
......
......@@ -17,6 +17,8 @@ if (WIN32)
set(smtk_libdir bin)
endif ()
set(SMTK_DATA_DIR "" CACHE PATH "Location of SMTK's testing data")
add_external_project_or_just_build_dependencies(smtk
DEPENDS boost qt shiboken paraview remus
CMAKE_ARGS
......@@ -33,6 +35,7 @@ add_external_project_or_just_build_dependencies(smtk
-DSMTK_ENABLE_REMUS_SUPPORT:BOOL=ON
-DSMTK_ENABLE_PYTHON_WRAPPING:BOOL=${shiboken_ENABLED}
-DCMAKE_INSTALL_LIBDIR:STRING=${smtk_libdir}
-DSMTK_DATA_DIR:PATH=${SMTK_DATA_DIR}
-DParaView_DIR:PATH=${paraview_dir}
-DBOOST_INCLUDEDIR:PATH=<INSTALL_DIR>/include/boost
......
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