os-autoinst-distri-opensuse icon indicating copy to clipboard operation
os-autoinst-distri-opensuse copied to clipboard

Expand rust tests

Open ByteOtter opened this issue 10 months ago • 2 comments

What?

This PR aims to expand the test coverage for the rust language packages. It aims to build upon the already existing test for the cargo package found in tests/console/rust.pm and include rustup into the coverage as well.

-- This is experimental and WIP --

Todo

  • [x] Separation of cargo and rustup tests

rustup - Tests

  • [x] Installation of rustup

  • [x] Test installing a new rust toolchain with rustup
  • [x] Test switching default toolchain with rustup

cargo - Tests

  • [x] Test installation of cargo
  • [x] Test project creation with cargo
  • [x] Test dependency management with cargo
  • [x] Test project compilation with cargo
  • [x] Add docs creation with cargo

Links

  • Related ticket: N/A
  • Needles: N/A
  • Verification run: TBD

ByteOtter avatar Apr 11 '24 11:04 ByteOtter

triggered: https://openqa.suse.de/tests/14413412

for JOB in $JOBS; do GITHUB_TOKEN=$(gh auth token) openqa-clone-custom-git-refspec https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/19080 $JOB SCHEDULE=tests/installation/bootloader_start,tests/boot/boot_to_desktop,tests/console/consoletest_setup,tests/console/rust_cargo,tests/console/rust_rustup TEST=RUST_33881; done;

foursixnine avatar May 22 '24 09:05 foursixnine

Here's the openSUSE build: https://openqa.opensuse.org/tests/4213796#step/rust_rustup/13

foursixnine avatar May 22 '24 13:05 foursixnine