summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/configure_file/DirOutput.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-03-09 12:42:02 (GMT)
committerBrad King <brad.king@kitware.com>2015-03-09 13:17:59 (GMT)
commit024e25e485f8d1dbca40521fbc0bcd61e383f413 (patch)
treecefc356363aac67d1aa5c2643f7b12392b1dc8d7 /Tests/RunCMake/configure_file/DirOutput.cmake
parent3ef776fc38fecff332e568f307dcf4e6f82fbe14 (diff)
downloadCMake-024e25e485f8d1dbca40521fbc0bcd61e383f413.zip
CMake-024e25e485f8d1dbca40521fbc0bcd61e383f413.tar.gz
CMake-024e25e485f8d1dbca40521fbc0bcd61e383f413.tar.bz2
Tests: Add more signature tests to RunCMake.configure_file test
Move the test cases from Tests/CMakeTests/ConfigureFileTest.cmake.in over to use the RunCMake.configure_file infrastructure. This does much more robust verification of CMake output for each test case, and would have caught the regression fixed in our parent commit.
Diffstat (limited to 'Tests/RunCMake/configure_file/DirOutput.cmake')
-rw-r--r--Tests/RunCMake/configure_file/DirOutput.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/RunCMake/configure_file/DirOutput.cmake b/Tests/RunCMake/configure_file/DirOutput.cmake
new file mode 100644
index 0000000..aa0fadf
--- /dev/null
+++ b/Tests/RunCMake/configure_file/DirOutput.cmake
@@ -0,0 +1,4 @@
+file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/DirOutput)
+configure_file(DirOutput.txt DirOutput)
+file(READ ${CMAKE_CURRENT_BINARY_DIR}/DirOutput/DirOutput.txt out)
+message("${out}")