From: Yash Shinde Date: Thu, 11 Dec 2025 14:08:16 +0000 (-0800) Subject: rust: remove passing tests from excluded and ignored list. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8fd1345a961cb34f81db4e4ff304ad244ee9a10;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git rust: remove passing tests from excluded and ignored list. Remove the ignore tags for passing riscv64 tests and drop obsolete "tests/codegen-llvm/issues/issue-122805.rs" from exclude test list. The test was renamed to "dont-shuffle-bswaps.rs" and passes now: https://github.com/rust-lang/rust/commit/3580698996f6da6f006477809d7959bffcfd3bf0 Signed-off-by: Yash Shinde Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- diff --git a/meta/lib/oeqa/selftest/cases/rust.py b/meta/lib/oeqa/selftest/cases/rust.py index ebc9204420..3a41391101 100644 --- a/meta/lib/oeqa/selftest/cases/rust.py +++ b/meta/lib/oeqa/selftest/cases/rust.py @@ -80,7 +80,6 @@ class RustSelfTestSystemEmulated(OESelftestTestCase, OEPTestResultTestCase): 'src/tools/tidy', 'tests/assembly-llvm/asm/aarch64-outline-atomics.rs', 'tests/assembly-llvm/c-variadic-arm.rs', - 'tests/codegen-llvm/issues/issue-122805.rs', 'tests/codegen-llvm/thread-local.rs', 'tests/mir-opt/', 'tests/run-make', diff --git a/meta/recipes-devtools/rust/files/rust-oe-selftest.patch b/meta/recipes-devtools/rust/files/rust-oe-selftest.patch index 7d26d75820..b39b326455 100644 --- a/meta/recipes-devtools/rust/files/rust-oe-selftest.patch +++ b/meta/recipes-devtools/rust/files/rust-oe-selftest.patch @@ -202,106 +202,6 @@ index a05f274136..0e69b4cb98 100644 fn sparse_inserts() { let cache: VecCache = VecCache::default(); let end = if cfg!(target_pointer_width = "64") && cfg!(target_os = "linux") { -diff --git a/tests/assembly-llvm/dwarf-mixed-versions-lto.rs b/tests/assembly-llvm/dwarf-mixed-versions-lto.rs -index 828328df843..30753c56c76 100644 ---- a/tests/assembly-llvm/dwarf-mixed-versions-lto.rs -+++ b/tests/assembly-llvm/dwarf-mixed-versions-lto.rs -@@ -8,6 +8,7 @@ - //@ compile-flags: -C lto -g -Cdwarf-version=5 - //@ assembly-output: emit-asm - //@ no-prefer-dynamic -+//@ ignore-riscv64 - - extern crate dwarf_mixed_versions_lto_aux; - -diff --git a/tests/codegen-llvm/const-vector.rs b/tests/codegen-llvm/const-vector.rs -index f4307492341..617e31140e9 100644 ---- a/tests/codegen-llvm/const-vector.rs -+++ b/tests/codegen-llvm/const-vector.rs -@@ -3,6 +3,7 @@ - //@ [OPT0_S390X] only-s390x - //@ [OPT0] compile-flags: -C no-prepopulate-passes -Copt-level=0 - //@ [OPT0_S390X] compile-flags: -C no-prepopulate-passes -Copt-level=0 -C target-cpu=z13 -+//@ ignore-riscv64 - - // This test checks that constants of SIMD type are passed as immediate vectors. - // We ensure that both vector representations (struct with fields and struct wrapping array) work. -diff --git a/tests/codegen-llvm/enum/enum-aggregate.rs b/tests/codegen-llvm/enum/enum-aggregate.rs -index 0161e5f3fa1..773a06fabb4 100644 ---- a/tests/codegen-llvm/enum/enum-aggregate.rs -+++ b/tests/codegen-llvm/enum/enum-aggregate.rs -@@ -1,6 +1,7 @@ - //@ compile-flags: -Copt-level=0 -Cno-prepopulate-passes - //@ min-llvm-version: 19 - //@ only-64bit -+//@ ignore-riscv64 - - #![crate_type = "lib"] - -diff --git a/tests/codegen-llvm/enum/enum-match.rs b/tests/codegen-llvm/enum/enum-match.rs -index 57db44ec74e..1e2507f7c90 100644 ---- a/tests/codegen-llvm/enum/enum-match.rs -+++ b/tests/codegen-llvm/enum/enum-match.rs -@@ -1,5 +1,6 @@ - //@ compile-flags: -Copt-level=1 - //@ only-64bit -+//@ ignore-riscv64 - - #![crate_type = "lib"] - #![feature(core_intrinsics)] -diff --git a/tests/codegen-llvm/enum/enum-transparent-extract.rs b/tests/codegen-llvm/enum/enum-transparent-extract.rs -index c5efb8d472b..e79b8916fc1 100644 ---- a/tests/codegen-llvm/enum/enum-transparent-extract.rs -+++ b/tests/codegen-llvm/enum/enum-transparent-extract.rs -@@ -1,5 +1,6 @@ - //@ compile-flags: -Copt-level=0 - //@ only-64bit -+//@ ignore-riscv64 - - #![crate_type = "lib"] - -diff --git a/tests/codegen-llvm/repeat-operand-zero-len.rs b/tests/codegen-llvm/repeat-operand-zero-len.rs -index b4cec42a07c..d450fead9a4 100644 ---- a/tests/codegen-llvm/repeat-operand-zero-len.rs -+++ b/tests/codegen-llvm/repeat-operand-zero-len.rs -@@ -1,4 +1,5 @@ - //@ compile-flags: -Copt-level=1 -Cno-prepopulate-passes -+//@ ignore-riscv64 - - // This test is here to hit the `Rvalue::Repeat` case in `codegen_rvalue_operand`. - // It only applies when the resulting array is a ZST, so the test is written in -diff --git a/tests/codegen-llvm/simd/extract-insert-dyn.rs b/tests/codegen-llvm/simd/extract-insert-dyn.rs -index 729f0145314..2b1d1beb86a 100644 ---- a/tests/codegen-llvm/simd/extract-insert-dyn.rs -+++ b/tests/codegen-llvm/simd/extract-insert-dyn.rs -@@ -1,4 +1,5 @@ - //@compile-flags: -C opt-level=3 -C no-prepopulate-passes -+//@ ignore-riscv64 - - #![feature( - core_intrinsics, -diff --git a/tests/codegen-llvm/transmute-scalar.rs b/tests/codegen-llvm/transmute-scalar.rs -index ce1b0558b2e..e8fda2cd566 100644 ---- a/tests/codegen-llvm/transmute-scalar.rs -+++ b/tests/codegen-llvm/transmute-scalar.rs -@@ -1,6 +1,7 @@ - //@ add-core-stubs - //@ compile-flags: -C opt-level=0 -C no-prepopulate-passes --target=x86_64-unknown-linux-gnu - //@ needs-llvm-components: x86 -+//@ ignore-riscv64 - - #![crate_type = "lib"] - #![feature(no_core, repr_simd)] -diff --git a/tests/codegen-llvm/uninhabited-transparent-return-abi.rs b/tests/codegen-llvm/uninhabited-transparent-return-abi.rs -index face1577c3f..09e0846bad0 100644 ---- a/tests/codegen-llvm/uninhabited-transparent-return-abi.rs -+++ b/tests/codegen-llvm/uninhabited-transparent-return-abi.rs -@@ -1,4 +1,5 @@ - //@ compile-flags: -Copt-level=3 -+//@ ignore-riscv64 - - // See https://github.com/rust-lang/rust/issues/135802 - diff --git a/tests/ui/abi/rust-cold-works-with-rustic-args.rs b/tests/ui/abi/rust-cold-works-with-rustic-args.rs index 551485469d3..575db924968 100644 --- a/tests/ui/abi/rust-cold-works-with-rustic-args.rs