summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/GenEx-TARGET_RUNTIME_DLLS/check.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-06-25 15:29:27 (GMT)
committerBrad King <brad.king@kitware.com>2021-06-25 15:29:46 (GMT)
commita95cbf389015ed71443921e5815369cff30349ee (patch)
tree08680feb23800f3f2570557e64974465fa9dbcb1 /Tests/RunCMake/GenEx-TARGET_RUNTIME_DLLS/check.cmake
parent4a0e68266b74479275ca62aca258ca876bc15fc4 (diff)
downloadCMake-a95cbf389015ed71443921e5815369cff30349ee.zip
CMake-a95cbf389015ed71443921e5815369cff30349ee.tar.gz
CMake-a95cbf389015ed71443921e5815369cff30349ee.tar.bz2
Tests: Shorten RunCMake.GenEx-* case names
Reduce the length of the longest path on disk needed by the tests.
Diffstat (limited to 'Tests/RunCMake/GenEx-TARGET_RUNTIME_DLLS/check.cmake')
-rw-r--r--Tests/RunCMake/GenEx-TARGET_RUNTIME_DLLS/check.cmake15
1 files changed, 15 insertions, 0 deletions
diff --git a/Tests/RunCMake/GenEx-TARGET_RUNTIME_DLLS/check.cmake b/Tests/RunCMake/GenEx-TARGET_RUNTIME_DLLS/check.cmake
new file mode 100644
index 0000000..e19598e
--- /dev/null
+++ b/Tests/RunCMake/GenEx-TARGET_RUNTIME_DLLS/check.cmake
@@ -0,0 +1,15 @@
+function(check_genex expected actual)
+ if(NOT expected STREQUAL actual)
+ string(APPEND RunCMake_TEST_FAILED "Expected DLLs:\n")
+ foreach(dll IN LISTS expected)
+ string(APPEND RunCMake_TEST_FAILED " ${dll}\n")
+ endforeach()
+ string(APPEND RunCMake_TEST_FAILED "Actual DLLs:\n")
+ foreach(dll IN LISTS actual)
+ string(APPEND RunCMake_TEST_FAILED " ${dll}\n")
+ endforeach()
+ endif()
+ set(RunCMake_TEST_FAILED "${RunCMake_TEST_FAILED}" PARENT_SCOPE)
+endfunction()
+
+include("${RunCMake_TEST_BINARY_DIR}/dlls.cmake")