On 32-bit/i686, skip some tests that fail with OOM

epel10
Benjamin A. Beasley 5 months ago
parent 945ad15398
commit 2e1bec89f1

@ -1,5 +1,5 @@
--- brotli-6.0.0/Cargo.toml 1970-01-01T00:00:01+00:00 --- brotli-6.0.0/Cargo.toml 1970-01-01T00:00:01+00:00
+++ brotli-6.0.0/Cargo.toml 2024-09-29T16:35:06.176128+00:00 +++ brotli-6.0.0/Cargo.toml 2024-10-01T14:59:41.120768+00:00
@@ -34,8 +34,17 @@ @@ -34,8 +34,17 @@
"compression", "compression",
"no-std", "no-std",

@ -222,7 +222,24 @@ find -type f -name '*.rs' -executable -exec chmod -x '{}' +
%if %{with check} %if %{with check}
%check %check
%if 0%{?__isa_bits} != 32
%cargo_test %cargo_test
%else
# Few tests fail with OOM on 32bit
# https://github.com/dropbox/rust-brotli/issues/42
skip="${skip-} --skip enc::test::test_roundtrip_10x10y"
skip="${skip-} --skip enc::test::test_roundtrip_64x"
skip="${skip-} --skip enc::test::test_roundtrip_asyoulik"
skip="${skip-} --skip enc::test::test_roundtrip_asyoulik9_5"
skip="${skip-} --skip enc::test::test_roundtrip_backward65536"
skip="${skip-} --skip enc::test::test_roundtrip_compressed_repeated"
skip="${skip-} --skip enc::test::test_roundtrip_monkey"
skip="${skip-} --skip enc::test::test_roundtrip_quickfox"
skip="${skip-} --skip enc::test::test_roundtrip_quickfox_repeated"
skip="${skip-} --skip enc::test::test_roundtrip_ukkonooa"
skip="${skip-} --skip enc::test::test_roundtrip_x"
%cargo_test -- -- --exact ${skip-}
%endif
%endif %endif
%changelog %changelog

@ -36,6 +36,29 @@ pre = [
"find -type f -name '*.rs' -executable -exec chmod -x '{}' +", "find -type f -name '*.rs' -executable -exec chmod -x '{}' +",
] ]
[scripts.check]
pre = [
"%if 0%{?__isa_bits} != 32",
]
post = [
"%else",
"# Few tests fail with OOM on 32bit",
"# https://github.com/dropbox/rust-brotli/issues/42",
"skip=\"${skip-} --skip enc::test::test_roundtrip_10x10y\"",
"skip=\"${skip-} --skip enc::test::test_roundtrip_64x\"",
"skip=\"${skip-} --skip enc::test::test_roundtrip_asyoulik\"",
"skip=\"${skip-} --skip enc::test::test_roundtrip_asyoulik9_5\"",
"skip=\"${skip-} --skip enc::test::test_roundtrip_backward65536\"",
"skip=\"${skip-} --skip enc::test::test_roundtrip_compressed_repeated\"",
"skip=\"${skip-} --skip enc::test::test_roundtrip_monkey\"",
"skip=\"${skip-} --skip enc::test::test_roundtrip_quickfox\"",
"skip=\"${skip-} --skip enc::test::test_roundtrip_quickfox_repeated\"",
"skip=\"${skip-} --skip enc::test::test_roundtrip_ukkonooa\"",
"skip=\"${skip-} --skip enc::test::test_roundtrip_x\"",
"%cargo_test -- -- --exact ${skip-}",
"%endif",
]
[[package.extra-patches]] [[package.extra-patches]]
number = 10 number = 10
file = "brotli-6.0.0-license-accuracy.patch" file = "brotli-6.0.0-license-accuracy.patch"

Loading…
Cancel
Save