summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-06-03 18:42:05 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-06-03 18:42:05 (GMT)
commit26765e815f291cc7995fc1e5ab748633384503b6 (patch)
tree4956fcdc0423833e8dce8be7951365597a6d90d1 /Tests
parent99fa3376162a682f46feb6aa4c8524435fb357a4 (diff)
downloadCMake-26765e815f291cc7995fc1e5ab748633384503b6.zip
CMake-26765e815f291cc7995fc1e5ab748633384503b6.tar.gz
CMake-26765e815f291cc7995fc1e5ab748633384503b6.tar.bz2
ENH: Test setting of environment variables
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CommandLineTest/CMakeLists.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/Tests/CommandLineTest/CMakeLists.txt b/Tests/CommandLineTest/CMakeLists.txt
index 51a80cf..d24ea94 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")