mbox series

[v2,00/10] Add rust runtime tests

Message ID 20221221125306.13779-1-alex.kiernan@gmail.com
Headers show
Series Add rust runtime tests | expand

Message

Alex Kiernan Dec. 21, 2022, 12:52 p.m. UTC
This series adds runtime tests for rust and cargo, merges (most of) the
include files into the base recipes and fixes target cargo builds.

Also add SDK_TOOLCHAIN_LANGS for selection of target toolchains as part
of packagegroup-core-sdk.

Changes in v2:
- Drop rust.inc/rust.bb merge, not actually made use of in the change
  set
- Reorder so cargo test goes after build fixes

Alex Kiernan (10):
  oeqa/runtime/rust: Add basic compile/run test
  libstd-rs: Merge .inc into .bb
  libstd-rs: Move source directory to library/test
  rust-llvm: Merge .inc into .bb
  rust-llvm: Update LLVM_VERSION to match embedded version
  cargo: Merge .inc into .bb
  cargo: Extend DEBUG_PREFIX_MAP to cover vendor
  packagegroup-rust-sdk-target: Add Rust SDK target packagegroup
  packagegroup-core-sdk: Add SDK toolchain language selection support
  oeqa/runtime/rust: Add cargo test

 meta/lib/oeqa/files/test.rs                   |  2 +
 meta/lib/oeqa/runtime/cases/rust.py           | 41 ++++++++++
 .../packagegroups/packagegroup-core-sdk.bb    | 10 ++-
 .../packagegroup-rust-sdk-target.bb           | 14 ++++
 meta/recipes-devtools/cargo/cargo.inc         | 69 ----------------
 meta/recipes-devtools/cargo/cargo_1.66.0.bb   | 73 ++++++++++++++++-
 meta/recipes-devtools/rust/libstd-rs.inc      | 40 ---------
 .../recipes-devtools/rust/libstd-rs_1.66.0.bb | 46 ++++++++++-
 meta/recipes-devtools/rust/rust-llvm.inc      | 78 ------------------
 .../recipes-devtools/rust/rust-llvm_1.66.0.bb | 82 ++++++++++++++++++-
 10 files changed, 260 insertions(+), 195 deletions(-)
 create mode 100644 meta/lib/oeqa/files/test.rs
 create mode 100644 meta/recipes-core/packagegroups/packagegroup-rust-sdk-target.bb
 delete mode 100644 meta/recipes-devtools/cargo/cargo.inc
 delete mode 100644 meta/recipes-devtools/rust/libstd-rs.inc
 delete mode 100644 meta/recipes-devtools/rust/rust-llvm.inc

Comments

Alexandre Belloni Dec. 21, 2022, 9:20 p.m. UTC | #1
Hello,

This is currently running on the AB and I got the following failures:

https://autobuilder.yoctoproject.org/typhoon/#/builders/64/builds/6375/steps/11/logs/stdio
https://autobuilder.yoctoproject.org/typhoon/#/builders/102/builds/3985/steps/11/logs/stdio
https://autobuilder.yoctoproject.org/typhoon/#/builders/63/builds/6334/steps/11/logs/stdio
https://autobuilder.yoctoproject.org/typhoon/#/builders/107/builds/3960/steps/11/logs/stdio

On 21/12/2022 12:52:55+0000, Alex Kiernan wrote:
> 
> This series adds runtime tests for rust and cargo, merges (most of) the
> include files into the base recipes and fixes target cargo builds.
> 
> Also add SDK_TOOLCHAIN_LANGS for selection of target toolchains as part
> of packagegroup-core-sdk.
> 
> Changes in v2:
> - Drop rust.inc/rust.bb merge, not actually made use of in the change
>   set
> - Reorder so cargo test goes after build fixes
> 
> Alex Kiernan (10):
>   oeqa/runtime/rust: Add basic compile/run test
>   libstd-rs: Merge .inc into .bb
>   libstd-rs: Move source directory to library/test
>   rust-llvm: Merge .inc into .bb
>   rust-llvm: Update LLVM_VERSION to match embedded version
>   cargo: Merge .inc into .bb
>   cargo: Extend DEBUG_PREFIX_MAP to cover vendor
>   packagegroup-rust-sdk-target: Add Rust SDK target packagegroup
>   packagegroup-core-sdk: Add SDK toolchain language selection support
>   oeqa/runtime/rust: Add cargo test
> 
>  meta/lib/oeqa/files/test.rs                   |  2 +
>  meta/lib/oeqa/runtime/cases/rust.py           | 41 ++++++++++
>  .../packagegroups/packagegroup-core-sdk.bb    | 10 ++-
>  .../packagegroup-rust-sdk-target.bb           | 14 ++++
>  meta/recipes-devtools/cargo/cargo.inc         | 69 ----------------
>  meta/recipes-devtools/cargo/cargo_1.66.0.bb   | 73 ++++++++++++++++-
>  meta/recipes-devtools/rust/libstd-rs.inc      | 40 ---------
>  .../recipes-devtools/rust/libstd-rs_1.66.0.bb | 46 ++++++++++-
>  meta/recipes-devtools/rust/rust-llvm.inc      | 78 ------------------
>  .../recipes-devtools/rust/rust-llvm_1.66.0.bb | 82 ++++++++++++++++++-
>  10 files changed, 260 insertions(+), 195 deletions(-)
>  create mode 100644 meta/lib/oeqa/files/test.rs
>  create mode 100644 meta/recipes-core/packagegroups/packagegroup-rust-sdk-target.bb
>  delete mode 100644 meta/recipes-devtools/cargo/cargo.inc
>  delete mode 100644 meta/recipes-devtools/rust/libstd-rs.inc
>  delete mode 100644 meta/recipes-devtools/rust/rust-llvm.inc
> 
> -- 
> 2.39.0
> 

> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#174906): https://lists.openembedded.org/g/openembedded-core/message/174906
> Mute This Topic: https://lists.openembedded.org/mt/95805431/3617179
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alexandre.belloni@bootlin.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
Alex Kiernan Dec. 21, 2022, 10:34 p.m. UTC | #2
Thanks. Busy the next few days, but at least one looks like the crossbeam
atomics problem.

On Wed, 21 Dec 2022, 21:20 Alexandre Belloni, <alexandre.belloni@bootlin.com>
wrote:

> Hello,
>
> This is currently running on the AB and I got the following failures:
>
>
> https://autobuilder.yoctoproject.org/typhoon/#/builders/64/builds/6375/steps/11/logs/stdio
>
> https://autobuilder.yoctoproject.org/typhoon/#/builders/102/builds/3985/steps/11/logs/stdio
>
> https://autobuilder.yoctoproject.org/typhoon/#/builders/63/builds/6334/steps/11/logs/stdio
>
> https://autobuilder.yoctoproject.org/typhoon/#/builders/107/builds/3960/steps/11/logs/stdio
>
> On 21/12/2022 12:52:55+0000, Alex Kiernan wrote:
> >
> > This series adds runtime tests for rust and cargo, merges (most of) the
> > include files into the base recipes and fixes target cargo builds.
> >
> > Also add SDK_TOOLCHAIN_LANGS for selection of target toolchains as part
> > of packagegroup-core-sdk.
> >
> > Changes in v2:
> > - Drop rust.inc/rust.bb merge, not actually made use of in the change
> >   set
> > - Reorder so cargo test goes after build fixes
> >
> > Alex Kiernan (10):
> >   oeqa/runtime/rust: Add basic compile/run test
> >   libstd-rs: Merge .inc into .bb
> >   libstd-rs: Move source directory to library/test
> >   rust-llvm: Merge .inc into .bb
> >   rust-llvm: Update LLVM_VERSION to match embedded version
> >   cargo: Merge .inc into .bb
> >   cargo: Extend DEBUG_PREFIX_MAP to cover vendor
> >   packagegroup-rust-sdk-target: Add Rust SDK target packagegroup
> >   packagegroup-core-sdk: Add SDK toolchain language selection support
> >   oeqa/runtime/rust: Add cargo test
> >
> >  meta/lib/oeqa/files/test.rs                   |  2 +
> >  meta/lib/oeqa/runtime/cases/rust.py           | 41 ++++++++++
> >  .../packagegroups/packagegroup-core-sdk.bb    | 10 ++-
> >  .../packagegroup-rust-sdk-target.bb           | 14 ++++
> >  meta/recipes-devtools/cargo/cargo.inc         | 69 ----------------
> >  meta/recipes-devtools/cargo/cargo_1.66.0.bb   | 73 ++++++++++++++++-
> >  meta/recipes-devtools/rust/libstd-rs.inc      | 40 ---------
> >  .../recipes-devtools/rust/libstd-rs_1.66.0.bb | 46 ++++++++++-
> >  meta/recipes-devtools/rust/rust-llvm.inc      | 78 ------------------
> >  .../recipes-devtools/rust/rust-llvm_1.66.0.bb | 82 ++++++++++++++++++-
> >  10 files changed, 260 insertions(+), 195 deletions(-)
> >  create mode 100644 meta/lib/oeqa/files/test.rs
> >  create mode 100644 meta/recipes-core/packagegroups/
> packagegroup-rust-sdk-target.bb
> >  delete mode 100644 meta/recipes-devtools/cargo/cargo.inc
> >  delete mode 100644 meta/recipes-devtools/rust/libstd-rs.inc
> >  delete mode 100644 meta/recipes-devtools/rust/rust-llvm.inc
> >
> > --
> > 2.39.0
> >
>
> >
> > -=-=-=-=-=-=-=-=-=-=-=-
> > Links: You receive all messages sent to this group.
> > View/Reply Online (#174906):
> https://lists.openembedded.org/g/openembedded-core/message/174906
> > Mute This Topic: https://lists.openembedded.org/mt/95805431/3617179
> > Group Owner: openembedded-core+owner@lists.openembedded.org
> > Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [
> alexandre.belloni@bootlin.com]
> > -=-=-=-=-=-=-=-=-=-=-=-
> >
>
>
> --
> Alexandre Belloni, co-owner and COO, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com
>