Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Migrate some integration tests to GitHub actions #311

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Rust Hypervisor Firmware Tests
on: [pull_request, create]

jobs:
build:
name: Tests
runs-on: ubuntu-22.04
strategy:
fail-fast: false
steps:
- name: Code checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Run unit tests
run: scripts/dev_cli.sh tests --unit
- name: Run integration tests
run: scripts/dev_cli.sh tests --integration
- name: Run integration tests
run: scripts/dev_cli.sh tests --integration-coreboot
31 changes: 0 additions & 31 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,6 @@ pipeline {
stages {
stage ('Build') {
parallel {
stage ('Linux guest Tests') {
agent { node { label 'focal-fw' } }
stages {
stage ('Checkout') {
steps {
checkout scm
}
}
stage('Run unit tests') {
steps {
sh "scripts/dev_cli.sh tests --unit"
}
}
stage('Run integration tests') {
options {
timeout(time: 1, unit: 'HOURS')
}
steps {
sh "scripts/dev_cli.sh tests --integration"
}
}
stage('Run coreboot integration tests') {
options {
timeout(time: 1, unit: 'HOURS')
}
steps {
sh "scripts/dev_cli.sh tests --integration-coreboot"
}
}
}
}
stage ('Windows guest Tests') {
agent { node { label 'focal-fw' } }
environment {
Expand Down
2 changes: 1 addition & 1 deletion scripts/run_coreboot_integration_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ make -C $COREBOOT_DIR olddefconfig
make -C $COREBOOT_DIR -j"$(nproc)"

export RUST_BACKTRACE=1
cargo test --features "coreboot integration_tests" "integration::tests::linux::$arch"
cargo test --features "coreboot integration_tests" "integration::tests::linux::$arch" -- --test-threads=1
2 changes: 1 addition & 1 deletion scripts/run_integration_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ rustup component add rust-src
cargo build --release --target "$target.json" -Zbuild-std=core,alloc -Zbuild-std-features=compiler-builtins-mem

export RUST_BACKTRACE=1
time cargo test --features "integration_tests" "integration::tests::linux::$arch"
time cargo test --features "integration_tests" "integration::tests::linux::$arch" -- --test-threads=1
Loading