diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2007-02-22 16:42:26 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2007-02-22 16:42:26 (GMT) |
commit | 1b2cf8c8dd2ea9440dc568c8ae7bf5e3f53f24f5 (patch) | |
tree | e254f8e9048fc7ee97a6b9c37c47a399eb9e07be /Tests/SimpleExclude/run.cmake.in | |
parent | abb67cae487a30d2a472f8bb233a895ce2228c1c (diff) | |
download | CMake-1b2cf8c8dd2ea9440dc568c8ae7bf5e3f53f24f5.zip CMake-1b2cf8c8dd2ea9440dc568c8ae7bf5e3f53f24f5.tar.gz CMake-1b2cf8c8dd2ea9440dc568c8ae7bf5e3f53f24f5.tar.bz2 |
ENH: Improve test
Diffstat (limited to 'Tests/SimpleExclude/run.cmake.in')
-rw-r--r-- | Tests/SimpleExclude/run.cmake.in | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Tests/SimpleExclude/run.cmake.in b/Tests/SimpleExclude/run.cmake.in new file mode 100644 index 0000000..f6da7c1 --- /dev/null +++ b/Tests/SimpleExclude/run.cmake.in @@ -0,0 +1,15 @@ +set(t4_name "@CMAKE_CURRENT_BINARY_DIR@${CFG_DIR}/t4") +execute_process(COMMAND "${t4_name}" + RESULT_VARIABLE "t4_var") +message("T4 ${t4_name} resulted ${t4_var}") + +set(t9_name "@CMAKE_CURRENT_BINARY_DIR@${CFG_DIR}/t9") +execute_process(COMMAND "${t9_name}" + RESULT_VARIABLE "t9_var") +message("T9 ${t9_name} resulted ${t9_var}") + +if ( "${t4_var}" EQUAL "0" AND "${t9_var}" EQUAL "0" ) + message("Everything is good, Yoshimi won...") +else ( "${t4_var}" EQUAL "0" AND "${t9_var}" EQUAL "0" ) + message(FATAL_ERROR "Yoshimi lost... The evil pink robots will take over the world") +endif ( "${t4_var}" EQUAL "0" AND "${t9_var}" EQUAL "0" ) |