2012-08-13 17:47:32 +00:00
|
|
|
cmake_minimum_required (VERSION 2.6)
|
|
|
|
project (CTestTestCostSerial)
|
|
|
|
include (CTest)
|
2011-01-03 16:25:46 +00:00
|
|
|
|
2012-08-13 17:47:32 +00:00
|
|
|
add_executable (Sleep sleep.c)
|
2011-01-03 16:25:46 +00:00
|
|
|
|
2012-08-13 17:47:32 +00:00
|
|
|
foreach (index RANGE 1 3)
|
|
|
|
add_test (TestSleep${index} Sleep)
|
2012-08-13 17:50:14 +00:00
|
|
|
endforeach ()
|
2011-01-03 16:25:46 +00:00
|
|
|
|
2012-08-13 17:47:32 +00:00
|
|
|
set_tests_properties(TestSleep1 PROPERTIES COST -500)
|
|
|
|
set_tests_properties(TestSleep2 PROPERTIES COST 12)
|
|
|
|
set_tests_properties(TestSleep3 PROPERTIES COST 0)
|