summaryrefslogtreecommitdiffstats
path: root/Tests/CTestUpdateSVN.cmake.in
Commit message (Collapse)AuthorAgeFilesLines
* Use string(APPEND) in TestsDaniel Pfeifer2016-07-271-1/+1
| | | | | | | Automate with: find Tests -type f -print0 | xargs -0 perl -i -0pe \ 's/set\(([a-zA-Z0-9_]+)(\s+)"\$\{\1\}([^"])/string(APPEND \1\2"\3/g'
* ctest_update: Fix RETURN_VALUE on VCS tool failure (#15610)Brad King2015-06-111-0/+19
| | | | | | | Make RETURN_VALUE report -1 if the update command failed as the documentation claims. Also avoid reporting a ctest script-level failure if the update command fails because we still correctly administered the update step.
* Remove CMake-language block-end command argumentsKitware Robot2012-08-131-1/+1
| | | | | | | | | | | | | | | | | Ancient versions of CMake required else(), endif(), and similar block termination commands to have arguments matching the command starting the block. This is no longer the preferred style. Run the following shell code: for c in else endif endforeach endfunction endmacro endwhile; do echo 's/\b'"$c"'\(\s*\)(.\+)/'"$c"'\1()/' done >convert.sed && git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' | egrep -z -v '^(Utilities/cm|Source/kwsys/)' | egrep -z -v 'Tests/CMakeTests/While-Endwhile-' | xargs -0 sed -i -f convert.sed && rm convert.sed
* CTestUpdateSVN: Do not create repo directory first (#13349)Brad King2012-07-091-1/+0
| | | | | | | | If the directory already exists some svnadmin versions report svnadmin: E200011: Repository creation failed svnadmin: E200011: Could not create top-level directory svnadmin: E200011: '.../CTest UpdateSVN/repo' exists and is non-empty
* Teach CTest.UpdateSVN to detect svn add --depth before using itBrad King2011-10-241-1/+11
| | | | | | Older svn versions do not have the --depth option for "svn add". Fortunately we do not need it for versions that old. Look for the option and use it only when available.
* Fix CTest.UpdateSVN with Subversion 1.7 (#12535)Brad King2011-10-241-1/+1
| | | | | | | | | | | | | | | | | | | | The test adds a subdirectory with svn add subdir svn add ... subdir/foo.txt subdir/bar.txt Subversion 1.7 fails on the second command with svn: warning: W150002: '.../subdir/foo.txt' is already under version control svn: warning: W150002: '.../subdir/bar.txt' is already under version control svn: E200009: Could not add all targets because some targets don't exist because it considers adding an already-versioned file to be an error. Avoid the problem by using svn add --depth=empty subdir to add the subdirectory without the files it contains.
* Generalize CTest.Update* test dashboard script helpersBrad King2010-06-081-2/+2
| | | | | | | Teach (create|run)_dashboard_script macros to treat the argument as the name of a build tree. Append '.cmake' to generate the dashboard script name. This allows future re-use of the macros for multiple test scripts.
* Test for SVNPath element in Update.xmlBrad King2009-12-181-0/+1
| | | | | | | The commit "Submit Subversion directory path in Update.xml" added the element <SVNPath>...</SVNPath> to Update.xml for Subversion work trees. This commit teaches the CTest.UpdateSVN test to verify the presence of the element.
* ENH: Teach Update* tests to report local mod stepBrad King2009-04-081-0/+1
| | | | | The CTest.UpdateCVS/SVN tests report every step with a message. This adds a message for the local modification step.
* ENH: Extend CTest.UpdateSVN to test local modsBrad King2009-02-261-0/+3
| | | | | This teaches the test to create local modifications in the work tree before updating.
* ENH: Test svn updates with space in author nameBrad King2009-02-231-1/+1
| | | | | This enhances the CTest.UpdateSVN test with a space in the test author name. It will check that author name parsing works correctly.
* ENH: Enhance CTest.UpdateCVS/SVN testsBrad King2009-02-231-1/+20
| | | | | This adds a source tree subdirectory to the content of the test projects. It also smoke tests more than one revision worth of changes.
* ENH: Test CTest update logic with VCS toolsBrad King2008-10-191-0/+116
This creates new tests "CTest.UpdateSVN" and "CTest.UpdateCVS". They test that the Update.xml produced by CTest for a version-controlled project contains entries for files added, changed, and removed.