media-sound/fooyin: Enable all tests provided by upstream

Signed-off-by: SigHunter <sighunter@gmx.de>
This commit is contained in:
SigHunter 2024-09-14 11:20:31 +02:00
parent 45d4ed8f64
commit 52c4eec278
No known key found for this signature in database
GPG Key ID: E6359D3AA1AA2397

View File

@ -8,7 +8,7 @@ inherit cmake xdg
DESCRIPTION="A customizable music player, Qt clone of foobar2000" DESCRIPTION="A customizable music player, Qt clone of foobar2000"
HOMEPAGE="https://www.fooyin.org/" HOMEPAGE="https://www.fooyin.org/"
if [[ ${PV} == 9999 ]]; then if [[ ${PV} == *9999* ]]; then
inherit git-r3 inherit git-r3
EGIT_REPO_URI="https://github.com/fooyin/fooyin.git" EGIT_REPO_URI="https://github.com/fooyin/fooyin.git"
else else
@ -24,7 +24,9 @@ SLOT="0"
IUSE="alsa pipewire sdl test" IUSE="alsa pipewire sdl test"
RESTRICT="!test? ( test )" RESTRICT="!test? ( test )"
REQUIRED_USE="|| ( alsa pipewire sdl )" REQUIRED_USE="
|| ( alsa pipewire sdl )
"
RDEPEND=" RDEPEND="
dev-libs/icu:= dev-libs/icu:=
@ -47,6 +49,13 @@ src_prepare() {
-e '/option(BUILD_TESTING/aenable_testing()' \ -e '/option(BUILD_TESTING/aenable_testing()' \
|| die || die
sed \
-e "s#:/audio#data/audio#g" \
-i \
tests/tagwritertest.cpp \
tests/tagreadertest.cpp \
|| die
cmake_src_prepare cmake_src_prepare
} }
@ -54,6 +63,7 @@ src_configure() {
local mycmakeargs=( local mycmakeargs=(
-DBUILD_TESTING=$(usex test) -DBUILD_TESTING=$(usex test)
-DBUILD_CCACHE=OFF -DBUILD_CCACHE=OFF
-DBUILD_LIBVGM=OFF
-DINSTALL_HEADERS=ON -DINSTALL_HEADERS=ON
$(cmake_use_find_package alsa ALSA) $(cmake_use_find_package alsa ALSA)
$(cmake_use_find_package pipewire PipeWire) $(cmake_use_find_package pipewire PipeWire)
@ -64,11 +74,7 @@ src_configure() {
} }
src_test() { src_test() {
local CMAKE_SKIP_TESTS=( ln -sr "${CMAKE_USE_DIR}/tests/data/audio" "${BUILD_DIR}/tests/data/audio" || die
# TODO: figure out why these tests fail to find their test data
TagReaderTest.*
TagWriterTest.*
)
cmake_src_test cmake_src_test
} }