View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015566CMakeCMakepublic2015-05-13 16:432015-11-02 09:15
ReporterFaheem Mitha 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
Platformamd64 LinuxOSDebian GNU/LinuxOS Version8.0 (jessie)
Product VersionCMake 3.2.2 
Target VersionCMake 3.3Fixed in VersionCMake 3.3 
Summary0015566: Some tests fail when source and build tree are under /usr/local
DescriptionThe following tests fail on jessie with current master.

26 - FindPackageTest (Failed)
232 - CTestTestStopTime (Failed)
283 - RunCMake.CMP0041 (Failed)
375 - RunCMake.IfacePaths_INCLUDE_DIRECTORIES (Failed)
409 - CMake.CheckSourceTree (Failed)

This is in a chroot. I attach verbose output of tests, and
also the result of running dpkg --get-selections in the chroot
Steps To Reproduce1) Create chroot using list of packages above
2) In top level source dir:
   mkdir build
   cd build
   cmake ..
   make -j <number-of-jobs>
   bin/ctest -j <number-of-jobs>

To produce only verbose output for the tests, I did

    bin/ctest -j <number-of-jobs> -V -R testname
TagsNo tags attached.
Attached Files? file icon dpkg-get-selections [^] (36,224 bytes) 2015-05-13 16:43 [Show Content]
? file icon FindPackageTest.out [^] (3,243 bytes) 2015-05-13 16:44
? file icon CTestTestStopTime [^] (2,910 bytes) 2015-05-13 16:45 [Show Content]
? file icon RunCMake.CMP0041 [^] (6,637 bytes) 2015-05-13 16:46
? file icon RunCMake.IfacePaths_INCLUDE_DIRECTORIES [^] (4,881 bytes) 2015-05-13 16:46
? file icon CMake.CheckSourceTree [^] (4,445 bytes) 2015-05-13 16:47

 Relationships

  Notes
(0038746)
Brad King (manager)
2015-05-14 10:22

The CheckSourceTree failure is because the build tree is under the source tree:

 Tests: Fix CheckSourceTree test when build is under source
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=332ee3e3 [^]

Other failures are in tests that check some combinations of source/build/install directory interaction. They fail because CMake is built in a directory under the default install prefix (/usr/local) and so think their source/build tree are under the install prefix within the test. Instead the tests must ensure this is not the case by setting CMAKE_INSTALL_PREFIX themselves:

 Tests: Fix failures when running under the default install prefix
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=d430cb7c [^]
(0038748)
Faheem Mitha (reporter)
2015-05-14 14:03

Thank you for fixing the bug. Faheem
(0039811)
Robert Maynard (manager)
2015-11-02 09:15

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2015-05-13 16:43 Faheem Mitha New Issue
2015-05-13 16:43 Faheem Mitha File Added: dpkg-get-selections
2015-05-13 16:44 Faheem Mitha File Added: FindPackageTest.out
2015-05-13 16:45 Faheem Mitha File Added: CTestTestStopTime
2015-05-13 16:46 Faheem Mitha File Added: RunCMake.CMP0041
2015-05-13 16:46 Faheem Mitha File Added: RunCMake.IfacePaths_INCLUDE_DIRECTORIES
2015-05-13 16:47 Faheem Mitha File Added: CMake.CheckSourceTree
2015-05-14 10:01 Brad King Summary 5 tests fail on amd64 Debian jessie => Some tests fail when source and build tree are under /usr/local
2015-05-14 10:22 Brad King Note Added: 0038746
2015-05-14 10:22 Brad King Status new => resolved
2015-05-14 10:22 Brad King Resolution open => fixed
2015-05-14 10:22 Brad King Fixed in Version => CMake 3.3
2015-05-14 10:22 Brad King Target Version => CMake 3.3
2015-05-14 14:03 Faheem Mitha Note Added: 0038748
2015-11-02 09:15 Robert Maynard Note Added: 0039811
2015-11-02 09:15 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team