summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/configure_file/NewLineStyle-NoArg.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/NewLineStyle-NoArg.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/NewLineStyle-NoArg.cmake')
-rw-r--r--Tests/RunCMake/configure_file/NewLineStyle-NoArg.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/RunCMake/configure_file/NewLineStyle-NoArg.cmake b/Tests/RunCMake/configure_file/NewLineStyle-NoArg.cmake
new file mode 100644
index 0000000..b35bde1
--- /dev/null
+++ b/Tests/RunCMake/configure_file/NewLineStyle-NoArg.cmake
@@ -0,0 +1,3 @@
+set(file_name ${CMAKE_CURRENT_BINARY_DIR}/NewLineStyle.txt)
+file(WRITE ${file_name} "Data\n")
+configure_file(${file_name} ${file_name}.out NEWLINE_STYLE)