summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeTests/CheckSourceTreeTest.cmake.in
Commit message (Collapse)AuthorAgeFilesLines
* Tests: Fix CheckSourceTree for in-source non-dashboard buildsIsrael Blancas2018-05-031-3/+1
| | | | | | | | | For in-source builds we must tolerate non-tracked files in the source tree. Previously we only tolerated them for dashboard builds during automated testing, but we should tolerate them for local user builds too. Fixes: #17868
* Tests: Fix CheckSourceTree test when build is under source (#15566)Brad King2015-05-141-1/+11
| | | | | | Since the build tree will populate content under the source tree the test cannot reliably check that the source tree is pristine. Simply skip most of the test in this case.
* Tests: Fix CheckSourceTree test for newer GitBrad King2014-12-161-2/+2
| | | | | The output of 'git status' no longer starts each line in '#'. Match that optionally.
* CheckSourceTree: Remove CVS checkout support (#13001)Brad King2012-03-021-82/+5
| | | | | | | We no longer support CVS checkouts from the Git repository. Drop the case from the CheckSourceTree test. This will also prevent the test from running and failing when CVS is found but Git is not.
* CheckSourceTree test: read UpdateCommand from Update.xml.David Cole2010-06-271-6/+57
| | | | | | | | | | | | If GIT_EXECUTABLE is not passed in, and is not available from DartConfiguration.tcl or CTestConfiguration.ini, then make one more last ditch attempt to get it from Update.xml, if there is an Update.xml. For dashboards that have successfully done a ctest_update call, there should be an Update.xml in the Testing subdir of the binary tree. Parse that file for the git executable recorded in the <UpdateCommand> element. And make this test pass on those RogueResearch dashboard machines!
* Look in the ctest ini file for GitCommand.David Cole2010-06-211-0/+54
| | | | | | | | If GIT_EXECUTABLE is not passed into the test, but the source tree is a git checkout, then use GitCommand or UpdateCommand from the ctest ini file to set its value. Presumably, a dashboard running the test suite had to have set this properly in order to do the ctest_update step.
* Allow return value of 1 from git status.David Cole2010-05-281-3/+3
|
* Further refinements to the CheckSourceTree test.David Cole2010-05-271-4/+27
| | | | | | | | | Echo results of calling git status before exiting with an error. Add one special case so that the test may pass on the dashmacmini2 continuous dashboard, despite a 'git status' non-zero return code. More logic like this may be required. I will re-evaluate based on tomorrow's nightly dashboard runs.
* Add git support to the CMake.CheckSourceTree test.David Cole2010-05-271-51/+150
| | | | | | | | | | Additionally, output some more information in both cvs and git cases. When it is a cvs checkout, echo the contents of CVS/Root and CVS/Repository to the test output. When it is a git checkout, echo the output of 'git branch -a'. This will allow us to see more details about any given CMake source tree right in the CDash results for this test.
* Force CheckSourceTree test to pass if the source tree is not a CVS checkout. ↵David Cole2009-12-071-0/+11
| | | | The test can only do its checking if cvs is available and the source tree is a cvs checkout. Also, allow for the possibility that backslash characters exist in the HOME environment variable, because they may when built in a cygwin environment on Windows.
* Fix cvs password problems during the CMake.CheckSourceTree test. Make sure ↵David Cole2009-12-041-0/+14
| | | | cvs has access to the original value of the HOME environment variable and not the 'CMake testing' value of it so that any cvs passwords set up on the machine work to get the list of local modifications using 'cvs up'...
* ENH: Make the CheckSourceTree test emit a warning (but pass instead of fail) ↵David Cole2009-07-271-4/+50
| | | | when there is an in-source build on a dashboard machine.
* ENH: Improvements to the new CheckSourceTree test: ignore Thumbs.db and ↵David Cole2009-07-251-49/+86
| | | | .DS_Store files. Force all output to stderr by not using STATUS with message. Better error text.
* BUG: Improve CheckSourceTree test so that it ignores 'U ' output from cvs ↵David Cole2009-07-241-3/+53
| | | | update. Also: improve failure logic for dashboard runs and developer runs.
* BUG: Additional fix necessary for issue #8481 so that Xcode builds do not ↵David Cole2009-07-241-0/+49
write files into the source tree. Also add a test that runs last to check for local modifications in CMake_SOURCE_DIR based on whether 'cvs -q -n up -dP' output is empty. Test fails on dashboard runs when there are local modifications. Test passes on non-dashboard runs with local modifications so that CMake developers may have mods when running the test locally.