Tests: CREATE_LINK subcommand negative test case

This commit is contained in:
Tushar Maheshwari
2018-12-27 22:05:32 +05:30
committed by Brad King
parent 45aa9c65a1
commit e68ea269d7
4 changed files with 7 additions and 0 deletions

View File

@@ -0,0 +1 @@
1

View File

@@ -0,0 +1,4 @@
CMake Error at CREATE_LINK-noarg\.cmake:[0-9]+ \(file\):
file CREATE_LINK must be called with at least two additional arguments
Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)

View File

@@ -0,0 +1 @@
file(CREATE_LINK ${CMAKE_CURRENT_LIST_FILE})

View File

@@ -1,6 +1,7 @@
include(RunCMake)
run_cmake(CREATE_LINK)
run_cmake(CREATE_LINK-noarg)
run_cmake(CREATE_LINK-noexist)
run_cmake(DOWNLOAD-hash-mismatch)
run_cmake(DOWNLOAD-unused-argument)