1. 08 Jun, 2010 3 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
      ctest_update: Support custom Git update command · 2eae651a
      Brad King authored
      Define CTest configuration variable CTEST_GIT_UPDATE_CUSTOM to set a
      custom command line for updating Git-managed source trees.
      2eae651a
    • 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
  2. 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
  3. 11 Feb, 2010 1 commit
  4. 09 Feb, 2010 1 commit
    • Brad King's avatar
      Teach CTest.UpdateGIT test to fake file timestamp · 6e7e71e9
      Brad King authored
      We wrap the git executable in a shell script that touches one source
      file after 'git pull'.  This makes the file newer than the index even
      though it has not actually changed.  If CTest does not refresh the index
      properly then the test will fail with a bogus modified file.
      6e7e71e9
  5. 01 Sep, 2009 1 commit
    • Brad King's avatar
      Make CTest.UpdateGIT robust to user git config · 06332c88
      Brad King authored
      Part of this test does "git pull" on a dirty work tree.  We need to make
      sure that 'branch.master.rebase' is false for the test repository.
      Otherwise if it is true in the user configuration then pull will refuse
      to rebase and the test will fail.
      06332c88
  6. 23 Apr, 2009 1 commit
  7. 22 Apr, 2009 1 commit
    • Brad King's avatar
      ENH: Teach CTest to handle git repositories · 9c17cbeb
      Brad King authored
      This creates cmCTestGIT to drive CTest Update handling on git-based work
      trees.  Currently we always update to the head of the remote tracking
      branch (git pull), so the nightly start time is ignored for Nightly
      builds.  A later change will address this.  See issue #6994.
      9c17cbeb
  8. 08 Apr, 2009 2 commits
  9. 26 Feb, 2009 1 commit
  10. 23 Feb, 2009 1 commit
  11. 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