commit 3b60fff8ba1041d60d67fa0122acb3e562f4e98b
Author: Uwe Klotz <uklotz(a)mixxx.org>
Date: Fri Dec 4 22:05:11 2020 +0100
Enable ctest after upstream build fix
mixxx.spec | 28 ++++++++++++----------------
1 file changed, 12 insertions(+), 16 deletions(-)
---
diff --git a/mixxx.spec b/mixxx.spec
index 7b8f010..3ffaf29 100644
--- a/mixxx.spec
+++ b/mixxx.spec
@@ -139,9 +139,16 @@ cp %{SOURCE1}
%{__cmake_builddir}/download/libKeyFinder/%{libkeyfinder_archive}
%install
+# Install build artifacts
%cmake3_install
-# USB HID permissions
+# Install desktop launcher
+desktop-file-install \
+ --vendor "" \
+ --dir %{buildroot}%{_datadir}/applications \
+ res/linux/%{name}.desktop
+
+# Install custom USB HID permissions
# - Relocate .rules file
# - Order custom rules before 70-uaccess.rules
install -d \
@@ -157,22 +164,11 @@ rm -rf \
%check
-# Tests can only be executed locally. Running them on
-#
http://koji.rpmfusion.org always ends with the error
-# message "# Child aborted***Exception:"
-# Note: Add the macro prefix '%' in front of 'ctest3' manually after
uncommenting.
-# Otherwise the tests would get executed by macro expansion even though hidden
-# within a comment!
-#QT_QPA_PLATFORM=offscreen \
-#ctest3
-
-# Desktop launcher
-desktop-file-install \
- --vendor "" \
- --dir %{buildroot}%{_datadir}/applications \
- res/linux/%{name}.desktop
-# AppStream data
+# Run tests
+%ctest3 --timeout 120
+
+# Validate AppStream data
appstream-util \
validate-relax \
--nonet \