1. 27 Jul, 2016 1 commit
    • Daniel Pfeifer's avatar
      Use string(APPEND) in Tests · 7a649111
      Daniel Pfeifer authored
      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'
  2. 10 Dec, 2015 1 commit
    • Brad King's avatar
      Tests: Simplify CTest.UpdateGIT repo path construction · 972849fb
      Brad King authored
      Avoid constructing full paths to .git repositories in the test.  Use
      relative paths and let Git convert them to absolute paths internally.
      This is simpler and also avoids trouble with various absolute path root
      component conventions on Windows (`c:/`, `/c/`, `/cygdrive/c/`).
  3. 11 Jun, 2015 2 commits
  4. 23 Feb, 2015 1 commit
  5. 18 Aug, 2014 1 commit
  6. 28 Feb, 2013 1 commit
  7. 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
  8. 20 Jun, 2012 1 commit
    • Brad King's avatar
      Make CTest.UpdateGIT robust to Git safecrlf on Windows · 5c153c62
      Brad King authored
      If the user has configured 'core.autocrlf' and 'core.safecrlf' then
      'git submodule add' will fail to 'git add' the '.gitmodules' file because
      it has LF newlines, at least as of Git 1.7.11.  Disable 'core.safecrlf'
      in our test repository to avoid the problem.
  9. 26 Jul, 2010 1 commit
    • Brad King's avatar
      ctest_update: Support ".git file" work trees · 7bf8dc1a
      Brad King authored
      Commit c3781efb (Support Git upstream branch rewrites, 2010-06-08)
      assumed that ".git/FETCH_HEAD" exists inside the source tree.  Fix the
      implementation to handle a work tree using a ".git file" to link to its
      repository.  Use "git rev-parse --git-dir" to locate the real .git dir.
  10. 23 Jun, 2010 1 commit
    • Brad King's avatar
      CTest: Parse empty Git commits correctly · bbfe241c
      Brad King authored
      Git's diff-tree format has no '\n'-terminated blank line at the end of
      its commit message body block if there are no diff lines.  Instead the
      message body is terminated by '\0' and there is no diff section.  Teach
      CTest to parse the format in this case.
  11. 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.
    • 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.
    • 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
  12. 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
  13. 11 Feb, 2010 1 commit
  14. 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.
  15. 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.
  16. 23 Apr, 2009 1 commit
  17. 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.
  18. 08 Apr, 2009 2 commits
  19. 26 Feb, 2009 1 commit
  20. 23 Feb, 2009 1 commit
  21. 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.