summaryrefslogtreecommitdiffstats
path: root/Tests/Complex/Library/test_preprocess.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-09-23 20:55:16 (GMT)
committerBrad King <brad.king@kitware.com>2006-09-23 20:55:16 (GMT)
commit13380569f37c969e1f3b3c722aa8ebb2551baf86 (patch)
treea7502e5a7a804b0f6de90cc5d1f99eba2e52946a /Tests/Complex/Library/test_preprocess.cmake
parent1c429da781083751902fe24e9e1f6ed9ff4ca9e5 (diff)
downloadCMake-13380569f37c969e1f3b3c722aa8ebb2551baf86.zip
CMake-13380569f37c969e1f3b3c722aa8ebb2551baf86.tar.gz
CMake-13380569f37c969e1f3b3c722aa8ebb2551baf86.tar.bz2
ENH: Adding test for running preprocessor rules.
Diffstat (limited to 'Tests/Complex/Library/test_preprocess.cmake')
-rw-r--r--Tests/Complex/Library/test_preprocess.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/Complex/Library/test_preprocess.cmake b/Tests/Complex/Library/test_preprocess.cmake
new file mode 100644
index 0000000..d2d9fc6
--- /dev/null
+++ b/Tests/Complex/Library/test_preprocess.cmake
@@ -0,0 +1,7 @@
+SET(TEST_FILE CMakeFiles/create_file.dir/create_file.i)
+FILE(READ ${TEST_FILE} CONTENTS)
+IF("${CONTENTS}" MATCHES "Unable to close")
+ MESSAGE(STATUS "${TEST_FILE} created successfully!")
+ELSE("${CONTENTS}" MATCHES "Unable to close")
+ MESSAGE(FATAL_ERROR "${TEST_FILE} creation failed!")
+ENDIF("${CONTENTS}" MATCHES "Unable to close")