From 26765e815f291cc7995fc1e5ab748633384503b6 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Fri, 3 Jun 2005 14:42:05 -0400 Subject: ENH: Test setting of environment variables --- Tests/CommandLineTest/CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Tests/CommandLineTest') diff --git a/Tests/CommandLineTest/CMakeLists.txt b/Tests/CommandLineTest/CMakeLists.txt index 51a80cf41d..d24ea948cc 100644 --- a/Tests/CommandLineTest/CMakeLists.txt +++ b/Tests/CommandLineTest/CMakeLists.txt @@ -72,4 +72,10 @@ ELSE(THIS_SHOULD_BE_SET) MESSAGE("***************************") MESSAGE(FATAL_ERROR "PreLoad.cmake does not work.") ENDIF(THIS_SHOULD_BE_SET) - + +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}") +ELSE("$ENV{TEST_ENVIRONMENT_VARIABLE}" STREQUAL "Environment variable set") + MESSAGE(SEND_ERROR "Environment variable setting is broken") +ENDIF("$ENV{TEST_ENVIRONMENT_VARIABLE}" STREQUAL "Environment variable set") -- cgit v1.2.1