Accepting request 1155569 from home:alarrosa:branches:multimedia:libs

- 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

OBS-URL: https://build.opensuse.org/request/show/1155569
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/orc?expand=0&rev=86
This commit is contained in:
Takashi Iwai 2024-03-06 16:48:45 +00:00 committed by Git OBS Bridge
parent 745661b7ba
commit 64b32eda96
3 changed files with 54 additions and 2 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Wed Mar 6 13:10:24 UTC 2024 - Antonio Larrosa <alarrosa@suse.com>
- 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 <alarrosa@suse.com>

View File

@ -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

35
relax-tests.patch Normal file
View File

@ -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<max;i+=2){
double x = i*0.1 + 6.0;
int size = (int) pow(2.0, x);
Index: orc-orc-0.4.28/testsuite/meson.build
===================================================================
--- orc-orc-0.4.28.orig/testsuite/meson.build
+++ orc-orc-0.4.28/testsuite/meson.build
@@ -31,6 +31,7 @@ foreach test : tests
test(
test,
t,
+ timeout: 120,
env: {
'testfile': meson.current_source_dir() + '/test.orc',
'ORC_TARGET': i,
@@ -43,6 +44,7 @@ foreach test : tests
test(
test,
t,
+ timeout: 120,
env: {
'testfile': meson.current_source_dir() + '/test.orc',
},