diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2023-07-20 20:57:02 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2023-08-10 20:47:51 (GMT) |
commit | c8c1dd0d9540acbe6172afe192c149fe04d0625b (patch) | |
tree | dfbd13051070176f318fcdb1fb0ae10f1e7912e1 /Tests/RunCMake/CTestResourceAllocation/dynamic-resource-circular-no-required-fixtures.cmake | |
parent | 3f5a5a5856790107bba5cad6d9d45d1170b986f1 (diff) | |
download | CMake-c8c1dd0d9540acbe6172afe192c149fe04d0625b.zip CMake-c8c1dd0d9540acbe6172afe192c149fe04d0625b.tar.gz CMake-c8c1dd0d9540acbe6172afe192c149fe04d0625b.tar.bz2 |
CTest: Add ability to dynamically generate resource spec file
Issue: #25106
Diffstat (limited to 'Tests/RunCMake/CTestResourceAllocation/dynamic-resource-circular-no-required-fixtures.cmake')
-rw-r--r-- | Tests/RunCMake/CTestResourceAllocation/dynamic-resource-circular-no-required-fixtures.cmake | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Tests/RunCMake/CTestResourceAllocation/dynamic-resource-circular-no-required-fixtures.cmake b/Tests/RunCMake/CTestResourceAllocation/dynamic-resource-circular-no-required-fixtures.cmake new file mode 100644 index 0000000..9accdf3 --- /dev/null +++ b/Tests/RunCMake/CTestResourceAllocation/dynamic-resource-circular-no-required-fixtures.cmake @@ -0,0 +1,11 @@ +add_test(NAME RealTest COMMAND "${CMAKE_COMMAND}" -E true) +add_test(NAME GenerateSpecFile COMMAND "${CMAKE_COMMAND}" -E copy "${CTEST_DYNAMIC_RESOURCE_SPEC_FILE}" "${CMAKE_BINARY_DIR}") +set_tests_properties(GenerateSpecFile PROPERTIES + GENERATED_RESOURCE_SPEC_FILE "${CMAKE_BINARY_DIR}/dynamic-resspec.json" + FIXTURES_SETUP "ResourceSpec" + RESOURCE_GROUPS "widgets:1" + ) +set_tests_properties(RealTest PROPERTIES + FIXTURES_REQUIRED "ResourceSpec" + RESOURCE_GROUPS "widgets:1" + ) |