summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeLists.txt
diff options
context:
space:
mode:
authorPaul Kunysch <kunysch@me.com>2013-03-05 23:14:58 (GMT)
committerBrad King <brad.king@kitware.com>2013-03-22 13:02:12 (GMT)
commit875eb8e158e9b8541b2efab09df44b32c6854f04 (patch)
tree82bed8297c805cfb51521cf9ea7d9bc8c23db613 /Tests/CMakeLists.txt
parent3ed2d03ee9ed9736656c8021e8f740540c9a2b7a (diff)
downloadCMake-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/CMakeLists.txt')
-rw-r--r--Tests/CMakeLists.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt
index e07bb69..283c846 100644
--- a/Tests/CMakeLists.txt
+++ b/Tests/CMakeLists.txt
@@ -2085,6 +2085,15 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=master -P ${CMake_SOURCE_DIR}/Utilities/
add_test(CTestBatchTest ${CMAKE_CTEST_COMMAND} -B)
+ configure_file(
+ "${CMake_SOURCE_DIR}/Tests/CTestTestFdSetSize/test.cmake.in"
+ "${CMake_BINARY_DIR}/Tests/CTestTestFdSetSize/test.cmake"
+ @ONLY ESCAPE_QUOTES)
+ add_test(CTestTestFdSetSize ${CMAKE_CTEST_COMMAND}
+ -S "${CMake_BINARY_DIR}/Tests/CTestTestFdSetSize/test.cmake" -j20 -V --timeout 120
+ --output-log "${CMake_BINARY_DIR}/Tests/CTestTestFdSetSize/testOutput.log"
+ )
+
# Use macro, not function so that build can still be driven by CMake 2.4.
# After 2.6 is required, this could be a function without the extra 'set'
# calls.