diff --git a/orc.changes b/orc.changes index abf8330..4ed77e1 100644 --- a/orc.changes +++ b/orc.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Wed Mar 6 13:10:24 UTC 2024 - Antonio Larrosa + +- Backport patch from SLE +- Add relax-tests.patch to increase test timeouts to 2 minutes, + also limit the max value for memcpy_speed.c test bsc#1130085 +- Enable tests + ------------------------------------------------------------------- Tue Mar 5 07:06:08 UTC 2024 - Antonio Larrosa diff --git a/orc.spec b/orc.spec index 34a00b7..255ee49 100644 --- a/orc.spec +++ b/orc.spec @@ -26,6 +26,7 @@ Group: Productivity/Multimedia/Other URL: https://gitlab.freedesktop.org/gstreamer/orc Source: https://gstreamer.freedesktop.org/src/orc/%{name}-%{version}.tar.xz Source99: baselibs.conf +Patch0: relax-tests.patch BuildRequires: gtk-doc >= 1.12 BuildRequires: meson >= 0.47.0 BuildRequires: pkgconfig @@ -66,14 +67,22 @@ arithmetic operations. %build %meson \ - -Dorc-test=disabled \ + -Dorc-test=enabled \ -Dexamples=disabled \ - -Dtests=disabled \ + -Dtests=enabled \ %{nil} %meson_build %install %meson_install +rm %{buildroot}%{_bindir}/orc-bugreport +rm %{buildroot}%{_libdir}/pkgconfig/orc-test-0.4.pc + +%check +# Disable testsuite for almost all arches, it's only stable on x86_64 +%ifnarch aarch64 %{arm} %{ix86} ppc64le +%meson_test +%endif %post -n liborc-0_4-0 -p /sbin/ldconfig %postun -n liborc-0_4-0 -p /sbin/ldconfig diff --git a/relax-tests.patch b/relax-tests.patch new file mode 100644 index 0000000..281cc5d --- /dev/null +++ b/relax-tests.patch @@ -0,0 +1,35 @@ +Index: orc-orc-0.4.28/testsuite/memcpy_speed.c +=================================================================== +--- orc-orc-0.4.28.orig/testsuite/memcpy_speed.c ++++ orc-orc-0.4.28/testsuite/memcpy_speed.c +@@ -102,6 +102,10 @@ main(int argc, char *argv[]) + max = 140; + } + ++ /* There is a pathological slow down for max > 150 or so ++ so set a lower value. */ ++ max = 140; ++ + for(i=0;i