[cmake-developers] ctest on cmake build
Rolf Eike Beer
eike at sf-mail.de
Fri May 17 13:59:14 EDT 2013
Kornel Benko wrote:
> Calling ctest after the last commit
> 5e993a2822e48c5d84b5bf01aad52ff5068cb5ea. The output is:
> ...
> Start 298: CMake.GetPrerequisites
> 298/299 Test #298: CMake.GetPrerequisites ...........................
> Passed 0.67 sec Start 299: CMake.CheckSourceTree
> 299/299 Test #299: CMake.CheckSourceTree ............................
> Passed 0.08 sec
>
> 99% tests passed, 4 tests failed out of 299
>
> Label Time Summary:
> Label1 = 0.06 sec
> Label2 = 0.06 sec
>
> Total Test time (real) = 757.62 sec
>
> The following tests FAILED:
> 258 - CTestTestMemcheckDummyPurify (Failed)
> 259 - CTestTestMemcheckDummyValgrind (Failed)
> 264 - CTestTestMemcheckDummyValgrindPrePost (Failed)
> 267 - CTestTestMemcheckDummyValgrindIgnoreMemcheck (Failed)
> Errors while running CTest
> ###########################################
>
> This is on ubuntu 12.04, 64 bit.
> Should I send more info?
This error happens because the way these tests are configured is different
from how they were before. Previously they had their source in the source dir,
and their build in the build dir. But since the CMakeLists.txt and similar
files of all these tests were nearly identical this has changed. Now the
source tree is in the build dir and this tests do an in-source build there.
You have used the same build dir before, and it still points to the (now gone)
source location in the source tree. So just wipe the directories of these
subtests (i.e. the stuff in /usr/BUILD/BuildCmakeGit/Tests/CTestTestMemcheck)
and rerun these tests, they should work then.
Eike
--
More information about the cmake-developers
mailing list