From ccc324d73d6f2cc0f5f47c65dabd21399a7203b11656e0bea5157d0b73d23a61 Mon Sep 17 00:00:00 2001 From: Jiri Slaby Date: Mon, 6 Jan 2025 07:13:24 +0000 Subject: [PATCH] disable some tests OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/liburing?expand=0&rev=55 --- liburing.changes | 2 +- liburing.spec | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/liburing.changes b/liburing.changes index c0948eb..0d64b69 100644 --- a/liburing.changes +++ b/liburing.changes @@ -1,7 +1,7 @@ ------------------------------------------------------------------- Mon Jan 6 06:55:31 UTC 2025 - Jiri Slaby -- disable tests for older kernels & strange archs +- disable some tests for older kernels & strange archs ------------------------------------------------------------------- Fri Dec 6 09:49:21 UTC 2024 - Jiri Slaby diff --git a/liburing.spec b/liburing.spec index 6e5325c..781d569 100644 --- a/liburing.spec +++ b/liburing.spec @@ -89,11 +89,16 @@ export CPPFLAGS="%{optflags} -fno-stack-protector" %check # 1) tests are broken on strange archs -# 2) tests are broken for older kernels -# 3) io_uring syscalls not supported as of qemu 7.0.0 and would test the host +# 2) io_uring syscalls not supported as of qemu 7.0.0 and would test the host # kernel anyway not the target kernel.. +declare -a TEST_EXCLUDE=() +%if 0%{?suse_version} == 1600 +TEST_EXCLUDE+=( sqwait.t ) +%endif + +export TEST_EXCLUDE="${TEST_EXCLUDE[@]}" %ifnarch ppc64le s390x -%if 0%{?suse_version} > 1600 && !0%{?qemu_user_space_build} +%if !0%{?qemu_user_space_build} %make_build runtests %endif %endif