summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CTestResourceAllocation/lotsoftests.cmake
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2019-11-05 07:40:50 (GMT)
committerBrad King <brad.king@kitware.com>2019-11-05 17:08:35 (GMT)
commiteb9d945f142ac7638baaf879fb9464fa39e3e9a7 (patch)
tree9dc10990cc5882cd272272315f669e22d8e71a37 /Tests/RunCMake/CTestResourceAllocation/lotsoftests.cmake
parentc544cb66984f16cc63ebace16ccd911adc550b9d (diff)
downloadCMake-eb9d945f142ac7638baaf879fb9464fa39e3e9a7.zip
CMake-eb9d945f142ac7638baaf879fb9464fa39e3e9a7.tar.gz
CMake-eb9d945f142ac7638baaf879fb9464fa39e3e9a7.tar.bz2
CTest: Rename hardware -> resources for RunCMake tests
Also includes variants like hw -> res
Diffstat (limited to 'Tests/RunCMake/CTestResourceAllocation/lotsoftests.cmake')
-rw-r--r--Tests/RunCMake/CTestResourceAllocation/lotsoftests.cmake16
1 files changed, 16 insertions, 0 deletions
diff --git a/Tests/RunCMake/CTestResourceAllocation/lotsoftests.cmake b/Tests/RunCMake/CTestResourceAllocation/lotsoftests.cmake
new file mode 100644
index 0000000..4c0a7a5
--- /dev/null
+++ b/Tests/RunCMake/CTestResourceAllocation/lotsoftests.cmake
@@ -0,0 +1,16 @@
+setup_resource_tests()
+
+add_resource_test(Test1 2 "widgets:8;2,widgets:2")
+add_resource_test(Test2 5 "fluxcapacitors:40")
+add_resource_test(Test3 1 "10,widgets:1,fluxcapacitors:2")
+add_resource_test(Test4 4 "fluxcapacitors:121")
+
+foreach(i RANGE 5 50)
+ add_resource_test(Test${i} 1 "2,widgets:1")
+endforeach()
+
+foreach(i RANGE 51 100)
+ add_resource_test(Test${i} 1 "2,transmogrifiers:2")
+endforeach()
+
+cleanup_resource_tests()