summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/UnityBuild/unitybuild_c-check.cmake
diff options
context:
space:
mode:
authorCristian Adam <cristian.adam@gmail.com>2019-07-29 17:33:55 (GMT)
committerCristian Adam <cristian.adam@gmail.com>2019-08-30 18:39:32 (GMT)
commit1353802af366bd64ba8f730e6f93d4c416107d48 (patch)
treec721c50d768012fc631160aad6de8e51a19d029a /Tests/RunCMake/UnityBuild/unitybuild_c-check.cmake
parent8dfeb5d278625c55be1cc82399d29c0305ee4438 (diff)
downloadCMake-1353802af366bd64ba8f730e6f93d4c416107d48.zip
CMake-1353802af366bd64ba8f730e6f93d4c416107d48.tar.gz
CMake-1353802af366bd64ba8f730e6f93d4c416107d48.tar.bz2
Unity build: Add unit tests
Diffstat (limited to 'Tests/RunCMake/UnityBuild/unitybuild_c-check.cmake')
-rw-r--r--Tests/RunCMake/UnityBuild/unitybuild_c-check.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/RunCMake/UnityBuild/unitybuild_c-check.cmake b/Tests/RunCMake/UnityBuild/unitybuild_c-check.cmake
new file mode 100644
index 0000000..c980df0
--- /dev/null
+++ b/Tests/RunCMake/UnityBuild/unitybuild_c-check.cmake
@@ -0,0 +1,5 @@
+set(unitybuild_c "${RunCMake_TEST_BINARY_DIR}/CMakeFiles/tgt.dir/Unity/unity_0.c")
+if(NOT EXISTS "${unitybuild_c}")
+ set(RunCMake_TEST_FAILED "Generated unity source files ${unitybuild_c} does not exist.")
+ return()
+endif()