summaryrefslogtreecommitdiffstats
path: root/Tests/CTestTestParallel/CMakeLists.txt
diff options
context:
space:
mode:
authorZach Mullen <zach.mullen@kitware.com>2009-09-22 16:06:03 (GMT)
committerZach Mullen <zach.mullen@kitware.com>2009-09-22 16:06:03 (GMT)
commit664a409ae03050b68add7fa642d5758c7dff2630 (patch)
treea21b6050e23d8d8326223b03abbc9c0b453e8069 /Tests/CTestTestParallel/CMakeLists.txt
parentca299989431279c48444837bcd603b127b0a9fad (diff)
downloadCMake-664a409ae03050b68add7fa642d5758c7dff2630.zip
CMake-664a409ae03050b68add7fa642d5758c7dff2630.tar.gz
CMake-664a409ae03050b68add7fa642d5758c7dff2630.tar.bz2
Added tests for ctest parallel options (PARALLEL_LEVEL, PROCESSORS, RUN_SERIAL)
Diffstat (limited to 'Tests/CTestTestParallel/CMakeLists.txt')
-rw-r--r--Tests/CTestTestParallel/CMakeLists.txt24
1 files changed, 24 insertions, 0 deletions
diff --git a/Tests/CTestTestParallel/CMakeLists.txt b/Tests/CTestTestParallel/CMakeLists.txt
new file mode 100644
index 0000000..b6d31b3
--- /dev/null
+++ b/Tests/CTestTestParallel/CMakeLists.txt
@@ -0,0 +1,24 @@
+cmake_minimum_required (VERSION 2.6)
+PROJECT(CTestTestParallel)
+
+SET(DART_ROOT "" CACHE STRING "" FORCE)
+ENABLE_TESTING()
+INCLUDE (${CMAKE_ROOT}/Modules/Dart.cmake)
+
+GET_FILENAME_COMPONENT(CTEST_COMMAND "${CMAKE_COMMAND}" PATH)
+SET(CTEST_COMMAND "${CTEST_COMMAND}/ctest")
+
+ADD_EXECUTABLE (LockFile lockFile.cxx)
+TARGET_LINK_LIBRARIES (NoBuild ${EXTRA_LIBS})
+
+ENABLE_TESTING ()
+
+ADD_TEST (TestRunSerial1 LockFile)
+ADD_TEST (TestRunSerial2 LockFile)
+SET_TESTS_PROPERTIES(TestRunSerial1 TestRunSerial2 PROPERTIES RUN_SERIAL true)
+
+ADD_TEST (TestProcessorsGreaterThanMPL1 LockFile)
+ADD_TEST (TestProcessorsGreaterThanMPL2 LockFile)
+SET_TESTS_PROPERTIES(TestProcessorsGreaterThanMPL1 PROPERTIES PROCESSORS 10)
+
+INCLUDE (CTest)