[cmake-developers] CMake 2.8.10-rc3 ready for testing!

David Cole david.cole at kitware.com
Thu Oct 25 08:28:57 EDT 2012


The following output is what causes the test to fail:

267: # Untracked files:
267: #   (use "git add <file>..." to include in what will be committed)
267: #
267: #  build/

It's just because you're building the code in a sub-directory of the
source dir. (Therefore we can't really do a "CheckSourceTree" test --
the point of the test is to make sure that no previous tests have
written anything anywhere underneath the source dir.)

You can safely ignore this test failure.

To avoid it, build CMake in a sibling directory of the source dir
rather than underneath the source dir.


HTH,
David


On Thu, Oct 25, 2012 at 3:07 AM, Shlomi Fish <shlomif at shlomifish.org> wrote:
> On Wed, 24 Oct 2012 19:16:39 -0400
> David Cole <david.cole at kitware.com> wrote:
>
>> Instead of "make test", please run "ctest -VV -R CheckSourceTree" and
>> send the output.
>>
>> It probably just means you have some local mods to your source tree,
>> or an untracked file is present.
>>
>>
>
> Here you go (the outputs of the "ctest" command and the "./bin/ctest" command
> are nearly identical except for a small difference in run times):
>
> [QUOTE]
>
> UpdateCTestConfiguration  from :/home/shlomif/Download/unpack/prog/cmake/cmake/build/DartConfiguration.tcl
> Parse Config file:/home/shlomif/Download/unpack/prog/cmake/cmake/build/DartConfiguration.tcl
>  Add coverage exclude regular expressions.
>  Add coverage exclude: XCode
>  Add coverage exclude: Kdevelop
>  Add coverage exclude: /Source/(cm|kw)sys/
>  Add coverage exclude: /CMakeFiles/CMakeTmp/
>  Add coverage exclude: [A-Za-z]./[Qq]t/qt-.+-opensource-src
> UpdateCTestConfiguration  from :/home/shlomif/Download/unpack/prog/cmake/cmake/build/DartConfiguration.tcl
> Parse Config file:/home/shlomif/Download/unpack/prog/cmake/cmake/build/DartConfiguration.tcl
> Test project /home/shlomif/Download/unpack/prog/cmake/cmake/build
> Constructing a list of tests
> Guessing configuration NoConfig
> Done constructing a list of tests
> Checking test dependency graph...
> Checking test dependency graph end
> test 267
>     Start 267: CMake.CheckSourceTree
>
> 267: Test command: /home/shlomif/Download/unpack/prog/cmake/cmake/build/bin/cmake "-DCMake_BINARY_DIR:PATH=/home/shlomif/Download/unpack/prog/cmake/cmake/build" "-DCMake_SOURCE_DIR:PATH=/home/shlomif/Download/unpack/prog/cmake/cmake" "-DGIT_EXECUTABLE:STRING=/bin/git" "-DHOME:STRING=/home/shlomif" "-P" "/home/shlomif/Download/unpack/prog/cmake/cmake/build/Tests/CMakeTests/CheckSourceTreeTest.cmake"
> 267: Test timeout computed to be: 1500
> 267: =============================================================================
> 267: CTEST_FULL_OUTPUT (Avoid ctest truncation of output)
> 267:
> 267: CMake_BINARY_DIR='/home/shlomif/Download/unpack/prog/cmake/cmake/build'
> 267: CMake_SOURCE_DIR='/home/shlomif/Download/unpack/prog/cmake/cmake'
> 267: GIT_EXECUTABLE='/bin/git'
> 267: HOME='/home/shlomif'
> 267: ENV{DASHBOARD_TEST_FROM_CTEST}=''
> 267:
> 267: build dir is under source dir
> 267: src_len='46'
> 267: bin_len='52'
> 267: substr_len='47'
> 267: bin_dir='/home/shlomif/Download/unpack/prog/cmake/cmake/'
> 267: in_source_build='1'
> 267:
> 267: is_git_checkout='1'
> 267:
> 267: =============================================================================
> 267: This is a git checkout, using git to verify source tree....
> 267:
> 267: === output of 'git --version' ===
> 267: git version 1.8.0
> 267: === end output ===
> 267:
> 267: === output of 'git branch -a' ===
> 267: * master
> 267:   remotes/origin/HEAD -> origin/master
> 267:   remotes/origin/dashboard
> 267:   remotes/origin/hooks
> 267:   remotes/origin/maint
> 267:   remotes/origin/master
> 267:   remotes/origin/next
> 267:   remotes/origin/nightly
> 267:   remotes/origin/nightly-master
> 267:   remotes/origin/release
> 267: === end output ===
> 267:
> 267: === output of 'git log -1' ===
> 267: commit f551fa62450379b41b510054948e097582538357
> 267: Author: Kitware Robot <kwrobot at kitware.com>
> 267: Date:   Wed Oct 24 00:01:07 2012 -0400
> 267:
> 267:     CMake Nightly Date Stamp
> 267: === end output ===
> 267:
> 267: Copy/paste this command to reproduce:
> 267: cd "/home/shlomif/Download/unpack/prog/cmake/cmake" && "/bin/git" status
> 267:
> 267: Results of running /bin/git;status
> 267: rv='0'
> 267: ov='# On branch master
> 267: # Your branch is ahead of 'origin/master' by 533 commits.
> 267: #
> 267: # Untracked files:
> 267: #   (use "git add <file>..." to include in what will be committed)
> 267: #
> 267: #  build/
> 267: nothing added to commit but untracked files present (use "git add" to track)
> 267: '
> 267: ev=''
> 267:
> 267: '# On branch masterE'
> 267: '# Your branch is ahead of 'origin/master' by 533 commits.E'
> 267: '#E'
> 267: '# Untracked files:E'
> 267:    locally non-added file/directory detected...
> 267: '#   (use "git add <file>..." to include in what will be committed)E'
> 267: '#E'
> 267: '# build/E'
> 267: 'nothing added to commit but untracked files present (use "git add" to track)E'
> 267: =============================================================================
> 267: additions='0'
> 267: conflicts='0'
> 267: modifications='0'
> 267: nonadditions='1'
> 267:
> 267: =============================================================================
> 267: interactive test run
> 267:
> 267: CMake Error at CheckSourceTreeTest.cmake:345 (message):
> 267:   test fails: local source tree non-additions: use git add before committing,
> 267:   or remove the files from the source tree
> 267:
> 267:
> 1/1 Test #267: CMake.CheckSourceTree ............***Failed    0.04 sec
>
> 0% tests passed, 1 tests failed out of 1
>
> Total Test time (real) =   0.94 sec
>
> The following tests FAILED:
>         267 - CMake.CheckSourceTree (Failed)
> Errors while running CTest
>
> [/QUOTE]
>
> Regards,
>
>         Shlomi Fish
>
> --
> -----------------------------------------------------------------
> Shlomi Fish       http://www.shlomifish.org/
> Understand what Open Source is - http://shlom.in/oss-fs
>
> But if you're writing [open source software] for the world, you have to listen
> to your customers — this doesn't change just because they're not paying you in
> money.
>     — Eric S. Raymond in The Cathedral and the Bazaar
>
> Please reply to list if it's a mailing list post - http://shlom.in/reply .
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers



More information about the cmake-developers mailing list