summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/TargetArtifacts/check.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/TargetArtifacts/check.cmake')
-rw-r--r--Tests/RunCMake/TargetArtifacts/check.cmake21
1 files changed, 21 insertions, 0 deletions
diff --git a/Tests/RunCMake/TargetArtifacts/check.cmake b/Tests/RunCMake/TargetArtifacts/check.cmake
new file mode 100644
index 0000000000..ca37eba531
--- /dev/null
+++ b/Tests/RunCMake/TargetArtifacts/check.cmake
@@ -0,0 +1,21 @@
+set(expected ${artifact_path}/rtbin/${exe_name})
+if(NOT EXISTS "${expected}")
+ message(SEND_ERROR "executable artifact not created in the expected path:\n ${expected}")
+endif()
+
+set(expected ${artifact_path}/staticlib/${static_name})
+if(NOT EXISTS "${expected}")
+ message(SEND_ERROR "static artifact not created in the expected path:\n ${expected}")
+endif()
+
+if(expect_dll)
+ set(expected ${artifact_path}/rtlib/${shared_name})
+ if(NOT EXISTS "${expected}")
+ message(SEND_ERROR "dll artifact not created in the expected path:\n ${expected}")
+ endif()
+else()
+ set(expected ${artifact_path}/sharedlib/${shared_name})
+ if(NOT EXISTS "${expected}")
+ message(SEND_ERROR "shared artifact not created in the expected path:\n ${expected}")
+ endif()
+endif()