summaryrefslogtreecommitdiffstats
path: root/Tests/CommandLineTest/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/CommandLineTest/CMakeLists.txt')
-rw-r--r--Tests/CommandLineTest/CMakeLists.txt24
1 files changed, 12 insertions, 12 deletions
diff --git a/Tests/CommandLineTest/CMakeLists.txt b/Tests/CommandLineTest/CMakeLists.txt
index 8a4b4f4..96aac10 100644
--- a/Tests/CommandLineTest/CMakeLists.txt
+++ b/Tests/CommandLineTest/CMakeLists.txt
@@ -6,8 +6,8 @@ macro(EXEC_CMAKE_COMMAND CMAKE_ARGS)
exec_program("${CMAKE_COMMAND}" ARGS "${CMAKE_ARGS}" RETURN_VALUE RET)
if(${RET})
message(SEND_ERROR "CMake command failed with arguments \"${CMAKE_ARGS}\"")
- endif(${RET})
-endmacro(EXEC_CMAKE_COMMAND)
+ endif()
+endmacro()
EXEC_CMAKE_COMMAND("-E chdir \"${CMAKE_CURRENT_SOURCE_DIR}\" \"${CMAKE_COMMAND}\" -E echo \"Hello World\"")
EXEC_CMAKE_COMMAND("-E time \"${CMAKE_COMMAND} -N -L ${CommandLineTest_SOURCE_DIR}\"")
@@ -32,14 +32,14 @@ macro(EXEC_CTEST_COMMAND CMAKE_ARGS)
exec_program("${CTEST_COMMAND}" ARGS "${CMAKE_ARGS}" RETURN_VALUE RET)
if(${RET})
message(SEND_ERROR "CTest command failed with arguments \"${CMAKE_ARGS}\"")
- endif(${RET})
-endmacro(EXEC_CTEST_COMMAND)
+ endif()
+endmacro()
macro(EXEC_CTEST_COMMAND_WITH_DIR DIR CMAKE_ARGS)
exec_program("${CTEST_COMMAND}" "${DIR}" ARGS "${CMAKE_ARGS}" RETURN_VALUE RET)
if(${RET})
message(SEND_ERROR "CTest command failed with arguments \"${CMAKE_ARGS}\"")
- endif(${RET})
-endmacro(EXEC_CTEST_COMMAND_WITH_DIR)
+ endif()
+endmacro()
EXEC_CTEST_COMMAND_WITH_DIR("${CMAKE_CURRENT_BINARY_DIR}/../.." "-N")
EXEC_CTEST_COMMAND_WITH_DIR("${CMAKE_CURRENT_BINARY_DIR}/../.." "-R complex -N")
@@ -59,21 +59,21 @@ if(THIS_SHOULD_BE_SET)
message(STATUS "***************************")
message(STATUS "PreLoad.cmake works fine.")
message(STATUS "***************************")
-else(THIS_SHOULD_BE_SET)
+else()
message("***************************")
message(FATAL_ERROR "PreLoad.cmake does not work.")
-endif(THIS_SHOULD_BE_SET)
+endif()
if(DEFINED ENV{TEST_ENVIRONMENT_VARIABLE_NOTSET})
message(SEND_ERROR "Environment variable definition test broken!")
-endif(DEFINED ENV{TEST_ENVIRONMENT_VARIABLE_NOTSET})
+endif()
set(ENV{TEST_ENVIRONMENT_VARIABLE} "Environment variable set")
if("$ENV{TEST_ENVIRONMENT_VARIABLE}" STREQUAL "Environment variable set")
message(STATUS "Environment variable set to: $ENV{TEST_ENVIRONMENT_VARIABLE}")
if(NOT DEFINED ENV{TEST_ENVIRONMENT_VARIABLE})
message(SEND_ERROR "Environment variable definition test failed!")
- endif(NOT DEFINED ENV{TEST_ENVIRONMENT_VARIABLE})
-else("$ENV{TEST_ENVIRONMENT_VARIABLE}" STREQUAL "Environment variable set")
+ endif()
+else()
message(SEND_ERROR "Environment variable setting is broken")
-endif("$ENV{TEST_ENVIRONMENT_VARIABLE}" STREQUAL "Environment variable set")
+endif()