From 5b49f22cafba29e044737fbfafa38fdfebd9d8e2 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 23 Feb 2009 15:59:07 -0500 Subject: 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. --- Tests/CTestUpdateCVS.cmake.in | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'Tests/CTestUpdateCVS.cmake.in') diff --git a/Tests/CTestUpdateCVS.cmake.in b/Tests/CTestUpdateCVS.cmake.in index f1bfc30656..a0507dd521 100644 --- a/Tests/CTestUpdateCVS.cmake.in +++ b/Tests/CTestUpdateCVS.cmake.in @@ -57,7 +57,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 ${CVSCMD} add ${dirs_added} + ) +endif(dirs_added) run_child( WORKING_DIRECTORY ${TOP}/user-source COMMAND ${CVSCMD} add ${files_added} @@ -75,6 +81,19 @@ run_child( COMMAND ${CVSCMD} commit -m "Changed content" ) +#----------------------------------------------------------------------------- +# 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 ${CVSCMD} commit -m "Changed content again" + ) + #----------------------------------------------------------------------------- # Go back to before the changes so we can test updating. message("Backing up to revision 1...") -- cgit v1.2.1