diff options
author | Brad King <brad.king@kitware.com> | 2009-02-23 15:59:07 -0500 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-02-23 15:59:07 -0500 |
commit | 5b49f22cafba29e044737fbfafa38fdfebd9d8e2 (patch) | |
tree | 2260b14efc970e62218609ffdf198328f9c916e0 /Tests/CTestUpdateSVN.cmake.in | |
parent | a16c857c30357d2ec03c975f64abb19ff78dd77d (diff) | |
download | cmake-5b49f22cafba29e044737fbfafa38fdfebd9d8e2.tar.gz |
ENH: Enhance CTest.UpdateCVS/SVN tests
This adds a source tree subdirectory to the content of the test
projects. It also smoke tests more than one revision worth of changes.
Diffstat (limited to 'Tests/CTestUpdateSVN.cmake.in')
-rw-r--r-- | Tests/CTestUpdateSVN.cmake.in | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/Tests/CTestUpdateSVN.cmake.in b/Tests/CTestUpdateSVN.cmake.in index 48df4218bb..e3b1b5ecdd 100644 --- a/Tests/CTestUpdateSVN.cmake.in +++ b/Tests/CTestUpdateSVN.cmake.in @@ -58,7 +58,13 @@ run_child( #----------------------------------------------------------------------------- # Make changes in the working tree. message("Changing content...") -update_content(user-source files_added files_removed) +update_content(user-source files_added files_removed dirs_added) +if(dirs_added) + run_child( + WORKING_DIRECTORY ${TOP}/user-source + COMMAND ${SVNCMD} add ${dirs_added} + ) +endif(dirs_added) run_child( WORKING_DIRECTORY ${TOP}/user-source COMMAND ${SVNCMD} add ${files_added} @@ -77,6 +83,19 @@ run_child( ) #----------------------------------------------------------------------------- +# Make changes in the working tree. +message("Changing content again...") +change_content(user-source) + +#----------------------------------------------------------------------------- +# Commit the changes to the repository. +message("Committing revision 3...") +run_child( + WORKING_DIRECTORY ${TOP}/user-source + COMMAND ${SVNCMD} commit -m "Changed content again" + ) + +#----------------------------------------------------------------------------- # Go back to before the changes so we can test updating. message("Backing up to revision 1...") run_child( |