diff mbox series

[3/3] rust: Oe-selftest changes for rust v1.82.0

Message ID 20250218133352.2360384-3-Deepesh.Varatharajan@windriver.com
State Accepted, archived
Commit b1340173be2a3a91fbb135eb0e24e50c3b996425
Headers show
Series [1/3] rust: Upgrade 1.81.0->1.82.0 | expand

Commit Message

Deepesh Varatharajan Feb. 18, 2025, 1:33 p.m. UTC
From: Deepesh Varatharajan <Deepesh.Varatharajan@windriver.com>

A few tests are getting failed with x86 arch.The unsupported/failing tests
are added to the exclude list and ignore the failing unit tests.

Upstream-Status: Pending

Signed-off-by: Deepesh Varatharajan <Deepesh.Varatharajan@windriver.com>
---
 meta/lib/oeqa/selftest/cases/rust.py          |  1 +
 .../rust/files/rust-oe-selftest.patch         | 48 +++++++++++++++++++
 2 files changed, 49 insertions(+)

Comments

Richard Purdie Feb. 19, 2025, 2:48 p.m. UTC | #1
On Tue, 2025-02-18 at 05:33 -0800, Varatharajan, Deepesh via lists.openembedded.org wrote:
> From: Deepesh Varatharajan <Deepesh.Varatharajan@windriver.com>
> 
> A few tests are getting failed with x86 arch.The unsupported/failing tests
> are added to the exclude list and ignore the failing unit tests.
> 
> Upstream-Status: Pending
> 
> Signed-off-by: Deepesh Varatharajan <Deepesh.Varatharajan@windriver.com>
> ---
>  meta/lib/oeqa/selftest/cases/rust.py          |  1 +
>  .../rust/files/rust-oe-selftest.patch         | 48 +++++++++++++++++++
>  2 files changed, 49 insertions(+)

We did see a single test failure in rust testing on the autobuilder:

https://autobuilder.yoctoproject.org/valkyrie/#/builders/28/builds/1014

Cheers,

Richard
Deepesh Varatharajan Feb. 19, 2025, 3:23 p.m. UTC | #2
On 19-02-2025 20:18, Richard Purdie wrote:
> CAUTION: This email comes from a non Wind River email account!
> Do not click links or open attachments unless you recognize the sender and know the content is safe.
>
> On Tue, 2025-02-18 at 05:33 -0800, Varatharajan, Deepesh via lists.openembedded.org wrote:
>> From: Deepesh Varatharajan <Deepesh.Varatharajan@windriver.com>
>>
>> A few tests are getting failed with x86 arch.The unsupported/failing tests
>> are added to the exclude list and ignore the failing unit tests.
>>
>> Upstream-Status: Pending
>>
>> Signed-off-by: Deepesh Varatharajan <Deepesh.Varatharajan@windriver.com>
>> ---
>>   meta/lib/oeqa/selftest/cases/rust.py          |  1 +
>>   .../rust/files/rust-oe-selftest.patch         | 48 +++++++++++++++++++
>>   2 files changed, 49 insertions(+)
> We did see a single test failure in rust testing on the autobuilder:
>
> https://autobuilder.yoctoproject.org/valkyrie/#/builders/28/builds/1014
>
> Cheers,
>
> Richard
I've sent a V2 with necessary changes.

Regards,
Deepesh
diff mbox series

Patch

diff --git a/meta/lib/oeqa/selftest/cases/rust.py b/meta/lib/oeqa/selftest/cases/rust.py
index 42e0258725..764dce5815 100644
--- a/meta/lib/oeqa/selftest/cases/rust.py
+++ b/meta/lib/oeqa/selftest/cases/rust.py
@@ -64,6 +64,7 @@  class RustSelfTestSystemEmulated(OESelftestTestCase, OEPTestResultTestCase):
                             'src/doc/rustc',
                             'src/doc/rustdoc',
                             'src/doc/unstable-book',
+                            'src/etc/test-float-parse',
                             'src/librustdoc',
                             'src/rustdoc-json-types',
                             'src/tools/jsondoclint',
diff --git a/meta/recipes-devtools/rust/files/rust-oe-selftest.patch b/meta/recipes-devtools/rust/files/rust-oe-selftest.patch
index 01c3634d9f..0e952efadc 100644
--- a/meta/recipes-devtools/rust/files/rust-oe-selftest.patch
+++ b/meta/recipes-devtools/rust/files/rust-oe-selftest.patch
@@ -401,3 +401,51 @@  index 3807cd5d76c..018c5c04456 100644
          fn $geometric(bench: &mut Bencher) {
              let bases: [$t; 16] = [2, 3, 4, 5, 7, 8, 9, 15, 16, 17, 31, 32, 33, 63, 64, 65];
              let base_and_numbers: Vec<($t, Vec<$t>)> = bases
+diff --git a/compiler/rustc_data_structures/src/tagged_ptr/copy/tests.rs b/compiler/rustc_data_structures/src/tagged_ptr/copy/tests.rs
+index 160af8a65d..686f4607bb 100644
+--- a/compiler/rustc_data_structures/src/tagged_ptr/copy/tests.rs
++++ b/compiler/rustc_data_structures/src/tagged_ptr/copy/tests.rs
+@@ -5,6 +5,7 @@ use crate::stable_hasher::{HashStable, StableHasher};
+ use crate::tagged_ptr::{CopyTaggedPtr, Pointer, Tag, Tag2};
+
+ #[test]
++#[ignore]
+ fn smoke() {
+     let value = 12u32;
+     let reference = &value;
+@@ -28,6 +29,7 @@ fn smoke() {
+ }
+
+ #[test]
++#[ignore]
+ fn stable_hash_hashes_as_tuple() {
+     let hash_packed = {
+         let mut hasher = StableHasher::new();
+diff --git a/compiler/rustc_data_structures/src/tagged_ptr/drop/tests.rs b/compiler/rustc_data_structures/src/tagged_ptr/drop/tests.rs
+index 4d342c72cc..9a77f92616 100644
+--- a/compiler/rustc_data_structures/src/tagged_ptr/drop/tests.rs
++++ b/compiler/rustc_data_structures/src/tagged_ptr/drop/tests.rs
+@@ -4,6 +4,7 @@ use std::sync::Arc;
+ use crate::tagged_ptr::{Pointer, Tag, Tag2, TaggedPtr};
+
+ #[test]
++#[ignore]
+ fn smoke() {
+     let value = 12u32;
+     let reference = &value;
+@@ -28,6 +29,7 @@ fn smoke() {
+ }
+
+ #[test]
++#[ignore]
+ fn boxed() {
+     let value = 12u32;
+     let boxed = Box::new(value);
+@@ -52,6 +54,7 @@ fn boxed() {
+ }
+
+ #[test]
++#[ignore]
+ fn arclones() {
+     let value = 12u32;
+     let arc = Arc::new(value);