Accepting request 1235113 from devel:libraries:c_c++

- disable some tests for older kernels & strange archs

OBS-URL: https://build.opensuse.org/request/show/1235113
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/liburing?expand=0&rev=26
This commit is contained in:
Ana Guerrero 2025-01-07 19:49:55 +00:00 committed by Git OBS Bridge
commit af07f513be
2 changed files with 26 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jan 6 06:55:31 UTC 2025 - Jiri Slaby <jslaby@suse.cz>
- disable some tests for older kernels & strange archs
-------------------------------------------------------------------
Fri Dec 6 09:49:21 UTC 2024 - Jiri Slaby <jslaby@suse.cz>

View File

@ -1,7 +1,7 @@
#
# spec file for package liburing
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -88,9 +88,29 @@ export CPPFLAGS="%{optflags} -fno-stack-protector"
%make_build -C src
%check
declare -a TEST_EXCLUDE=()
%if 0%{?sle_version} == 150500
TEST_EXCLUDE+=( fallocate.t fd-pass.t fixed-buf-merge.t msg-ring-overflow.t nop.t poll-race-mshot.t reg-hint.t sqwait.t wq-aff.t )
%endif
%if 0%{?sle_version} == 150600 || 0%{?sle_version} == 150700
TEST_EXCLUDE+=( fallocate.t )
%endif
%if 0%{?suse_version} == 1600
TEST_EXCLUDE+=( sqwait.t )
%endif
%ifarch ppc64le
TEST_EXCLUDE+=( no-mmap-inval.t recv-multishot.t reg-fd-only.t recvsend_bundle.t recvsend_bundle-inc.t )
%elifarch s390x
TEST_EXCLUDE+=( futex.t multicqes_drain.t poll-mshot-update.t read-mshot.t waitid.t )
TEST_EXCLUDE+=( link-timeout.t min-timeout-wait.t submit-and-wait.t sync-cancel.t )
%endif
# io_uring syscalls not supported as of qemu 7.0.0 and would test the host
# kernel anyway not the target kernel..
%if !0%{?qemu_user_space_build}
echo "TEST_EXCLUDE=\"${TEST_EXCLUDE[@]}\"" > test/config.local
%make_build runtests
%endif