1. 26 Oct, 2013 1 commit
    • Pedro Navarro's avatar
      ctest_update: Add support for Perforce p4 client · 970c8234
      Pedro Navarro authored
      Teach the ctest_update implementation to use the p4 command-line
      client to perform updates and extract the list of changes.
      
      Add a CTest.UpdateP4 test like those that exist already for the other
      version control tools.  Make the test available when p4 and the p4d
      server are found.  During the test launch p4d in the background to
      serve a repository from the test directory.  Then direct the client
      toward this server for the duration of the test.
      970c8234
  2. 13 Aug, 2012 1 commit
    • Kitware Robot's avatar
      Remove CMake-language block-end command arguments · 9db31162
      Kitware Robot authored
      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
      9db31162
  3. 29 Jul, 2011 1 commit
  4. 08 Jun, 2010 2 commits
    • Brad King's avatar
      ctest_update: Support Git upstream branch rewrites · c3781efb
      Brad King authored
      Use 'git fetch' followed by 'git reset' to update the source tree.  This
      is better than 'git pull' because it can handle a rewritten upstream
      branch and does not leave local modifications.  After fetch, parse
      FETCH_HEAD to find the merge head that 'git pull' would choose to track
      the upstream branch.  Then reset to the selected head.
      
      In the normal fast-forward case the behavior remains unchanged.
      However, now local modifications and commits will be erased, and
      upstream rewrites are handled smoothly.  This ensures that the upstream
      branch is tested as expected.
      c3781efb
    • Brad King's avatar
      Generalize CTest.Update* test dashboard script helpers · 11bdc2b1
      Brad King authored
      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.
      11bdc2b1
  5. 04 May, 2010 1 commit
    • Brad King's avatar
      Teach ctest_update about Git submodules · 67277bac
      Brad King authored
      Git does not automatically checkout the matching version of a submodule
      when it checks out a new version of the parent project in the work tree.
      If the submodule reference changed in the parent project then we were
      reporting the submodule path as a local modification.  Work around the
      problem in ctest_update using "git submodule update" after "git pull".
      For projects with no submodules this is a no-op.  See issue #10662.
      Also add a submodule to the test project for CTest.UpdateGIT to test the
      work-around.
      67277bac
  6. 11 Feb, 2010 1 commit
  7. 10 Feb, 2010 1 commit
    • Brad King's avatar
      Make CTest.UpdateCVS robust to some cvs clients · 2de33ebd
      Brad King authored
      Commit "Teach CTest.Update tests to strongly check entries" (2010-02-09)
      started checking Update.xml entries strongly.  This revealed that some
      cvs clients report "U CTestConfig.cmake" during update even though the
      file did not change and it selects the same revision.  As a result the
      test fails with
      
        Update.xml has extra unexpected entries:
      
          Updated{CTestConfig.cmake}
      
      We fix the test to tolerate this particular extra entry without failing.
      2de33ebd
  8. 09 Feb, 2010 1 commit
  9. 28 Jan, 2010 1 commit
  10. 18 Dec, 2009 2 commits
    • Brad King's avatar
      Test for SVNPath element in Update.xml · 91835563
      Brad King authored
      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.
      91835563
    • Brad King's avatar
      Submit global tree revision in Update.xml · a73833d0
      Brad King authored
      We teach CTest to report in a <Revision> element the revision of the
      source tree that was tested.  This makes sense for all modern VCS tools
      because they version the whole tree.  We simply omit this element for
      CVS because it only versions files.  See issue #7541.
      a73833d0
  11. 11 Aug, 2009 1 commit
  12. 26 Feb, 2009 1 commit
  13. 23 Feb, 2009 3 commits
  14. 19 Oct, 2008 1 commit
    • Brad King's avatar
      ENH: Test CTest update logic with VCS tools · 3584a4ec
      Brad King authored
      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.
      3584a4ec