[CMake] CTest misses out with code coverage on files whose path is outside PROJECT_SOURCE_DIR
Wojciech Migda
wojtek.golf at interia.pl
Wed Oct 7 13:56:40 EDT 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Wojciech Migda pisze:
> Hi,
>
> I have found a strange behaviour of ctest when performing code
> coverage analysis for unit tests. When the unit test binary is
> linked with a static library compiled from source files located
> outside the PROJECT_SOURCE_DIR then although the *.gcov files are
> generated, they are missed out from the final xml file.
>
> LastCoverage_*.log from the Testing/Temporary folder contains the
> an error of a form:
>
> Errors: Something went wrong. Cannot find file:
> /home/scr/code_coverage/src_B/src_B.c in source dir:
> /home/scr/code_coverage/dir_A or binary dir: /home/scr/code_c
> overage/dir_A
>
> Coverage.xml will then contain data for src_A library, but not for
> src_B.
>
> If I make a symbolic link to src_B within dir_A (where top-level
> CMakeLists.txt is located) then the code coverage will be
> summarized for src_B as well.
>
> Should I submit a bug ?
>
> Tarball with an example is attached.
>
> With best regards,
>
> Wojtek
Bug submitted: http://www.vtk.org/Bug/view.php?id=9678
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFKzNZY0iFl+nAyImcRAvj5AJ4sH/E5OQi/8BTwFGva2VIjOgcDFACfUm1b
hvvG4SFoUV+wckQDkAR5PEA=
=xzFg
-----END PGP SIGNATURE-----
---------------------------------------------------------------
Zapytaj wró¿kê!
Kliknij >>> http://link.interia.pl/f238d
More information about the CMake
mailing list