diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2018-07-12 15:17:38 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2018-07-17 13:07:01 (GMT) |
commit | 69ca768e7827c60b07914f248d7730fb7182ce4b (patch) | |
tree | ea516ca4382cb2a736043259dda033af61270498 /Tests/RunCMake/install/TARGETS-RPATH-all-check.cmake | |
parent | 25c3fb6c3512a76d45fd8a70d95fabe2777a4c2d (diff) | |
download | CMake-69ca768e7827c60b07914f248d7730fb7182ce4b.zip CMake-69ca768e7827c60b07914f248d7730fb7182ce4b.tar.gz CMake-69ca768e7827c60b07914f248d7730fb7182ce4b.tar.bz2 |
Tests: Add test for install(TARGETS) RPATH functionality
Diffstat (limited to 'Tests/RunCMake/install/TARGETS-RPATH-all-check.cmake')
-rw-r--r-- | Tests/RunCMake/install/TARGETS-RPATH-all-check.cmake | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Tests/RunCMake/install/TARGETS-RPATH-all-check.cmake b/Tests/RunCMake/install/TARGETS-RPATH-all-check.cmake new file mode 100644 index 0000000..fa52d65 --- /dev/null +++ b/Tests/RunCMake/install/TARGETS-RPATH-all-check.cmake @@ -0,0 +1,14 @@ +execute_process( + COMMAND "${CMAKE_INSTALL_PREFIX}/bin/myexe" + RESULT_VARIABLE MYEXE_RESULT + OUTPUT_VARIABLE MYEXE_OUTPUT + ERROR_VARIABLE MYEXE_ERROR + ) + +if(NOT MYEXE_RESULT EQUAL "0") + set(RunCMake_TEST_FAILED "myexe returned [${MYEXE_RESULT}], was expecting [0]") +elseif(NOT MYEXE_OUTPUT STREQUAL "") + set(RunCMake_TEST_FAILED "myexe printed nonempty output:\n${MYEXE_OUTPUT}") +elseif(NOT MYEXE_ERROR STREQUAL "") + set(RunCMake_TEST_FAILED "myexe printed nonempty error:\n${MYEXE_ERROR}") +endif() |