ENH: Added test for executables with plugins that use an API exported by the executable itself.
This commit is contained in:
parent
c1a6e4dcc6
commit
0164f2faae
|
@ -986,6 +986,16 @@ IF(BUILD_TESTING)
|
||||||
--test-command executable
|
--test-command executable
|
||||||
)
|
)
|
||||||
|
|
||||||
|
ADD_TEST(Plugin ${CMAKE_CTEST_COMMAND}
|
||||||
|
--build-and-test
|
||||||
|
"${CMake_SOURCE_DIR}/Tests/Plugin"
|
||||||
|
"${CMake_BINARY_DIR}/Tests/Plugin"
|
||||||
|
--build-generator ${CMAKE_TEST_GENERATOR}
|
||||||
|
--build-project Plugin
|
||||||
|
--build-makeprogram ${CMAKE_TEST_MAKEPROGRAM}
|
||||||
|
--build-two-config
|
||||||
|
--test-command bin/example)
|
||||||
|
|
||||||
IF(NOT CMAKE_TEST_DIFFERENT_GENERATOR)
|
IF(NOT CMAKE_TEST_DIFFERENT_GENERATOR)
|
||||||
ADD_TEST(kwsys ${CMAKE_CTEST_COMMAND}
|
ADD_TEST(kwsys ${CMAKE_CTEST_COMMAND}
|
||||||
--build-and-test
|
--build-and-test
|
||||||
|
|
Loading…
Reference in New Issue