summaryrefslogtreecommitdiffstats
path: root/Tests/CTestUpdateCommon.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-02-26 14:22:16 (GMT)
committerBrad King <brad.king@kitware.com>2009-02-26 14:22:16 (GMT)
commit7960f7541ce3d8d03ce68b0e5a37e67019bbe557 (patch)
tree4aacde09c18bc14c6c395d645723f47904303bb2 /Tests/CTestUpdateCommon.cmake
parent8c3290b4a3d16808bc49a1365c7ea792e64996ee (diff)
downloadCMake-7960f7541ce3d8d03ce68b0e5a37e67019bbe557.zip
CMake-7960f7541ce3d8d03ce68b0e5a37e67019bbe557.tar.gz
CMake-7960f7541ce3d8d03ce68b0e5a37e67019bbe557.tar.bz2
ENH: Extend CTest.UpdateSVN to test local mods
This teaches the test to create local modifications in the work tree before updating.
Diffstat (limited to 'Tests/CTestUpdateCommon.cmake')
-rw-r--r--Tests/CTestUpdateCommon.cmake8
1 files changed, 7 insertions, 1 deletions
diff --git a/Tests/CTestUpdateCommon.cmake b/Tests/CTestUpdateCommon.cmake
index 7b670ae..9b6960f 100644
--- a/Tests/CTestUpdateCommon.cmake
+++ b/Tests/CTestUpdateCommon.cmake
@@ -110,6 +110,12 @@ function(change_content dir)
endfunction(change_content)
#-----------------------------------------------------------------------------
+# Function to create local modifications before update
+function(modify_content dir)
+ file(APPEND ${TOP}/${dir}/CTestConfig.cmake "# local modification\n")
+endfunction(modify_content)
+
+#-----------------------------------------------------------------------------
# Function to write CTestConfiguration.ini content.
function(create_build_tree src_dir bin_dir)
file(MAKE_DIRECTORY ${TOP}/${bin_dir})
@@ -149,7 +155,7 @@ function(run_dashboard_command_line bin_dir)
)
# Verify the updates reported by CTest.
- check_updates(${bin_dir} foo.txt bar.txt zot.txt
+ check_updates(${bin_dir} foo.txt bar.txt zot.txt CTestConfig.cmake
subdir/foo.txt subdir/bar.txt)
endfunction(run_dashboard_command_line)