summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CTestResourceAllocation/ensure_parallel.cmake
blob: 562d05acb0ba7700702ab3f2a620dae112427946 (plain)
1
2
3
4
5
6
7
8
9
10
11
setup_resource_tests()

add_resource_test(Test1 4 "transmogrifiers:2")

# Mitigate possible race conditions to ensure that the events are logged in the
# exact order we want
add_test(NAME Test2Sleep COMMAND "${CMAKE_COMMAND}" -E sleep 2)
add_resource_test(Test2 4 "transmogrifiers:2")
set_property(TEST Test2 APPEND PROPERTY DEPENDS Test2Sleep)

cleanup_resource_tests()