From a4510888589a7002901728e78ae74bab611238df Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Tue, 23 Jan 2024 14:01:24 +0100 Subject: [PATCH] Skip tests that fail with Rust 1.75+ when built in release mode --- rust-half1.spec | 4 +++- rust2rpm.toml | 10 ++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/rust-half1.spec b/rust-half1.spec index 4730114..06beb2c 100644 --- a/rust-half1.spec +++ b/rust-half1.spec @@ -151,7 +151,9 @@ use the "use-intrinsics" feature of the "%{crate}" crate. %if %{with check} %check -%cargo_test +# * skip tests that fail with Rust 1.75+ when built in release mode: +# https://github.com/starkat99/half-rs/issues/103 +%cargo_test -- -- --exact --skip bfloat::test::test_nan_conversion_to_larger --skip bfloat::test::test_nan_conversion_to_smaller --skip binary16::test::test_nan_conversion_to_larger --skip binary16::test::test_nan_conversion_to_smaller %endif %changelog diff --git a/rust2rpm.toml b/rust2rpm.toml index ba29a5a..51f165b 100644 --- a/rust2rpm.toml +++ b/rust2rpm.toml @@ -1,3 +1,13 @@ [package] summary = "Half-precision floating point f16 and bf16 types for Rust" +[tests] +skip = [ + "bfloat::test::test_nan_conversion_to_larger", + "bfloat::test::test_nan_conversion_to_smaller", + "binary16::test::test_nan_conversion_to_larger", + "binary16::test::test_nan_conversion_to_smaller", +] +skip-exact = true +comments = ["skip tests that fail with Rust 1.75+ when built in release mode: https://github.com/starkat99/half-rs/issues/103"] +