2009-09-22 20:06:03 +04:00
|
|
|
cmake_minimum_required (VERSION 2.6)
|
2012-08-13 21:47:32 +04:00
|
|
|
project(CTestTestParallel)
|
|
|
|
include(CTest)
|
2009-09-22 20:06:03 +04:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
add_executable (LockFile lockFile.c)
|
2009-09-22 20:06:03 +04:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
add_test (TestRunSerial1 LockFile)
|
|
|
|
add_test (TestRunSerial2 LockFile)
|
|
|
|
set_tests_properties(TestRunSerial1 TestRunSerial2 PROPERTIES RUN_SERIAL true)
|
2009-09-22 20:06:03 +04:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
add_test (TestProcessorsGreaterThanMPL1 LockFile)
|
|
|
|
add_test (TestProcessorsGreaterThanMPL2 LockFile)
|
|
|
|
set_tests_properties(TestProcessorsGreaterThanMPL1 PROPERTIES PROCESSORS 10)
|
|
|
|
set_tests_properties(TestProcessorsGreaterThanMPL1 PROPERTIES DEPENDS
|
2010-06-24 01:18:59 +04:00
|
|
|
TestProcessorsGreaterThanMPL2)
|