From 1b7ad60a4a38c9f9dba79bffe0d762dc45a4feef680980ad3b68cf2f15c7bd3f Mon Sep 17 00:00:00 2001 From: Jiri Slaby Date: Mon, 6 Jan 2025 07:05:08 +0000 Subject: [PATCH 1/5] disable some tests OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/liburing?expand=0&rev=54 --- liburing.changes | 5 +++++ liburing.spec | 12 ++++++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/liburing.changes b/liburing.changes index c515cea..c0948eb 100644 --- a/liburing.changes +++ b/liburing.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jan 6 06:55:31 UTC 2025 - Jiri Slaby + +- disable 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 db67c1a..6e5325c 100644 --- a/liburing.spec +++ b/liburing.spec @@ -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,11 +88,15 @@ export CPPFLAGS="%{optflags} -fno-stack-protector" %make_build -C src %check -# 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} +# 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 +# kernel anyway not the target kernel.. +%ifnarch ppc64le s390x +%if 0%{?suse_version} > 1600 && !0%{?qemu_user_space_build} %make_build runtests %endif +%endif %install %make_install From ccc324d73d6f2cc0f5f47c65dabd21399a7203b11656e0bea5157d0b73d23a61 Mon Sep 17 00:00:00 2001 From: Jiri Slaby Date: Mon, 6 Jan 2025 07:13:24 +0000 Subject: [PATCH 2/5] 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 From 4d5c9ce32271557f2ec665c5224d697b33e364daf09f852b8ce6b276a183cbaf Mon Sep 17 00:00:00 2001 From: Jiri Slaby Date: Mon, 6 Jan 2025 07:23:29 +0000 Subject: [PATCH 3/5] 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 From 549b26df0d50ab77e04c02d6983f428c7435119a8f688059822813c3560af18e Mon Sep 17 00:00:00 2001 From: Jiri Slaby Date: Mon, 6 Jan 2025 07:51:28 +0000 Subject: [PATCH 4/5] disable some tests OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/liburing?expand=0&rev=57 --- liburing.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/liburing.spec b/liburing.spec index 8e12b8a..686bb75 100644 --- a/liburing.spec +++ b/liburing.spec @@ -92,7 +92,7 @@ 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 ) -%elif 0%{?%sle_version} == 150600 +%elif 0%{?%sle_version} == 150600 || 0%{?%sle_version} == 150700 TEST_EXCLUDE+=( fallocate.t ) %elif 0%{?suse_version} == 1600 TEST_EXCLUDE+=( sqwait.t ) @@ -100,12 +100,16 @@ TEST_EXCLUDE+=( sqwait.t ) %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+=( 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} -%make_build runtests TEST_EXCLUDE="${TEST_EXCLUDE[@]}" +echo "TEST_EXCLUDE=\"${TEST_EXCLUDE[@]}\"" > test/config.local +%make_build runtests %endif %install From 5eb53b6bbef2bec19afb94c7146a5680f43cb1bd5cdc8978b5004831fd6f3a31 Mon Sep 17 00:00:00 2001 From: Jiri Slaby Date: Mon, 6 Jan 2025 08:01:40 +0000 Subject: [PATCH 5/5] disable some tests OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/liburing?expand=0&rev=58 --- liburing.spec | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/liburing.spec b/liburing.spec index 686bb75..2e133ce 100644 --- a/liburing.spec +++ b/liburing.spec @@ -90,11 +90,13 @@ export CPPFLAGS="%{optflags} -fno-stack-protector" %check declare -a TEST_EXCLUDE=() -%if 0%{?%sle_version} == 150500 +%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 || 0%{?%sle_version} == 150700 +%endif +%if 0%{?sle_version} == 150600 || 0%{?sle_version} == 150700 TEST_EXCLUDE+=( fallocate.t ) -%elif 0%{?suse_version} == 1600 +%endif +%if 0%{?suse_version} == 1600 TEST_EXCLUDE+=( sqwait.t ) %endif @@ -102,7 +104,7 @@ TEST_EXCLUDE+=( sqwait.t ) 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+=( min-timeout-wait.t submit-and-wait.t sync-cancel.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