"make test" target fails in CMake build

Bug #1590374 reported by Alex Valavanis on 2016-06-08
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Medium
Alex Valavanis

Bug Description

The "make test" target fails to build when using an out-of-source CMake config. "make check" completes correctly though... these should really be synonyms.

$ cmake ../lp-inkscape-ch -DGMOCK_DIR=/usr/src/gmock/

$ make

$ make test

Running tests...
Test project /home/alex/devel/inkscape/lp-inkscape-build-cmake
    Start 1: BaseTest
Could not find executable /home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/unittest
Looked in the following places:
/home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/unittest
/home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/unittest
/home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/Release/unittest
/home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/Release/unittest
/home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/Debug/unittest
/home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/Debug/unittest
/home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/MinSizeRel/unittest
/home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/MinSizeRel/unittest
/home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/RelWithDebInfo/unittest
/home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/RelWithDebInfo/unittest
/home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/Deployment/unittest
/home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/Deployment/unittest
/home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/Development/unittest
/home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/Development/unittest
home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/unittest
home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/unittest
home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/Release/unittest
home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/Release/unittest
home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/Debug/unittest
home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/Debug/unittest
home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/MinSizeRel/unittest
home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/MinSizeRel/unittest
home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/RelWithDebInfo/unittest
home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/RelWithDebInfo/unittest
home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/Deployment/unittest
home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/Deployment/unittest
home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/Development/unittest
home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/Development/unittest
Unable to find executable: /home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/unittest
1/1 Test #1: BaseTest .........................***Not Run 0.00 sec

0% tests passed, 1 tests failed out of 1

Total Test time (real) = 0.00 sec

The following tests FAILED:
   1 - BaseTest (Not Run)
Errors while running CTest
Makefile:127: recipe for target 'test' failed
make: *** [test] Error 8

Alex Valavanis (valavanisalex) wrote :

Fixed in trunk r14968.

There is a remaining (minor) difference between "make test" and "make check", in that the latter gives verbose test output and is therefore the preferred option.

Changed in inkscape:
status: Triaged → Fix Committed
milestone: none → 0.92
assignee: nobody → Alex Valavanis (valavanisalex)
Bryce Harrington (bryce) on 2017-01-10
Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers