From 8a9db5440d7c7e9b2df515ea4dcd6c2e48571e42 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Sat, 11 Jan 2025 00:37:05 +0100 Subject: [PATCH] rpm: Enable unit tests on Fedora --- dist/unix/strawberry.spec.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dist/unix/strawberry.spec.in b/dist/unix/strawberry.spec.in index 973c84404..f5253e162 100644 --- a/dist/unix/strawberry.spec.in +++ b/dist/unix/strawberry.spec.in @@ -123,9 +123,11 @@ Features: %endif %check +export QT_QPA_PLATFORM="offscreen" %if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos} +%{cmake_build} -t strawberry_tests %else -QT_QPA_PLATFORM="offscreen" %{make_build} -j $(nproc) -C build strawberry_tests +%{make_build} -j $(nproc) -C build strawberry_tests %endif desktop-file-validate %{buildroot}%{_datadir}/applications/org.strawberrymusicplayer.strawberry.desktop %if 0%{?suse_version}