diff options
author | Paul Kunysch <kunysch@me.com> | 2013-03-05 23:14:58 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-03-22 13:02:12 (GMT) |
commit | 875eb8e158e9b8541b2efab09df44b32c6854f04 (patch) | |
tree | 82bed8297c805cfb51521cf9ea7d9bc8c23db613 /Tests/CTestTestFdSetSize/test.cmake.in | |
parent | 3ed2d03ee9ed9736656c8021e8f740540c9a2b7a (diff) | |
download | CMake-875eb8e158e9b8541b2efab09df44b32c6854f04.zip CMake-875eb8e158e9b8541b2efab09df44b32c6854f04.tar.gz CMake-875eb8e158e9b8541b2efab09df44b32c6854f04.tar.bz2 |
CTest: Add test for running many tests in parallel
In particular, this checks that CTest's use of select() has a sufficient
file descriptor set size limit (FD_SETSIZE) to handle many child
processes at the same time. Running 20 tests requires more than 64
descriptors, the Cygwin default that we override.
Diffstat (limited to 'Tests/CTestTestFdSetSize/test.cmake.in')
-rw-r--r-- | Tests/CTestTestFdSetSize/test.cmake.in | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Tests/CTestTestFdSetSize/test.cmake.in b/Tests/CTestTestFdSetSize/test.cmake.in new file mode 100644 index 0000000..c24f505 --- /dev/null +++ b/Tests/CTestTestFdSetSize/test.cmake.in @@ -0,0 +1,23 @@ +cmake_minimum_required(VERSION 2.8.10) + +# Settings: +set(CTEST_DASHBOARD_ROOT "@CMake_BINARY_DIR@/Tests/CTestTest") +set(CTEST_SITE "@SITE@") +set(CTEST_BUILD_NAME "CTestTest-@BUILDNAME@-FdSetSize") + +set(CTEST_SOURCE_DIRECTORY "@CMake_SOURCE_DIR@/Tests/CTestTestFdSetSize") +set(CTEST_BINARY_DIRECTORY "@CMake_BINARY_DIR@/Tests/CTestTestFdSetSize") +set(CTEST_CVS_COMMAND "@CVSCOMMAND@") +set(CTEST_CMAKE_GENERATOR "@CMAKE_TEST_GENERATOR@") +set(CTEST_CMAKE_GENERATOR_TOOLSET "@CMAKE_TEST_GENERATOR_TOOLSET@") +set(CTEST_BUILD_CONFIGURATION "$ENV{CMAKE_CONFIG_TYPE}") +set(CTEST_COVERAGE_COMMAND "@COVERAGE_COMMAND@") +set(CTEST_NOTES_FILES "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}") + +ctest_start(Experimental) +ctest_configure(BUILD "${CTEST_BINARY_DIRECTORY}" RETURN_VALUE res) +message("build") +ctest_build(BUILD "${CTEST_BINARY_DIRECTORY}" RETURN_VALUE res) +message("test") +ctest_test(BUILD "${CTEST_BINARY_DIRECTORY}" PARALLEL_LEVEL 20 RETURN_VALUE res) +message("done") |