From 4d5c9ce32271557f2ec665c5224d697b33e364daf09f852b8ce6b276a183cbaf Mon Sep 17 00:00:00 2001 From: Jiri Slaby Date: Mon, 6 Jan 2025 07:23:29 +0000 Subject: [PATCH] disable some tests OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/liburing?expand=0&rev=56 --- liburing.spec | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/liburing.spec b/liburing.spec index 781d569..8e12b8a 100644 --- a/liburing.spec +++ b/liburing.spec @@ -88,19 +88,24 @@ export CPPFLAGS="%{optflags} -fno-stack-protector" %make_build -C src %check -# 1) tests are broken on strange archs -# 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 + +%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 ) +%elif 0%{?%sle_version} == 150600 +TEST_EXCLUDE+=( fallocate.t ) +%elif 0%{?suse_version} == 1600 TEST_EXCLUDE+=( sqwait.t ) %endif -export TEST_EXCLUDE="${TEST_EXCLUDE[@]}" -%ifnarch ppc64le s390x -%if !0%{?qemu_user_space_build} -%make_build runtests +%ifarch ppc64le +TEST_EXCLUDE+=( no-mmap-inval.t recv-multishot.t reg-fd-only.t recvsend_bundle.t recvsend_bundle-inc.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} +%make_build runtests TEST_EXCLUDE="${TEST_EXCLUDE[@]}" %endif %install