Summary: | media-libs/taglib: tests don't run | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Matt Turner <mattst88> |
Component: | New packages | Assignee: | Gentoo KDE team <kde> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | creffett |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Looking at the root CMakeLists.txt, there's a line: OPTION(BUILD_TESTS "Build the test suite" OFF). So I think we need to add $(cmake-utils_use_build test tests) to mycmakeargs in src_configure(). Correction on that: It should be $(cmake-utils_use_build test TESTS). That still didn't make the test phase do anything, so I looked at what was being built, and it looks like taglib is kind of unconventional in its tests, since instead of adding ctest commands to CMakeLists, it compiles a bunch of files together into an executable file at taglib-1.7.1_build/tests/test_runner. Unfortunately, this command is segfaulting (at least for me), so this is going to take more investigating before it can be included in the ebuild. I am also ran into a segfault running tests/test_runner, but 'pushd tests && ./test_runner' or simply 'make check' works fine for here. This is now fixed, thanks for the report. I have also sent a patch upstream which will allow us to use the default src_test exported by cmake-utils. + 15 May 2012; Michael Palimaka <kensington@gentoo.org> taglib-1.7.2.ebuild: + Actually run tests when enabled. Fixes bug #415299 by Matt Turner + <mattst88@gentoo.org>. |
FEATURES=test emerge taglib results in >>> Working in BUILD_DIR: "/var/tmp/portage/media-libs/taglib-1.7.1/work/taglib-1.7.1_build" No tests found. Skipping. which is especially disappointing after I went to the trouble to keyword cppunit on mips. Please fix.