Skip to content

Commit

Permalink
Use gdb runner and fix CI to only run target tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ian-h-chamberlain committed May 20, 2024
1 parent b1f824e commit ba25f2f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,18 @@ jobs:
cargo 3ds test --no-run --test layout_test --all-features --package ctru-sys
cargo 3ds test --no-run --lib --all-features --package ctru-rs
- name: Run helper tests
run: cargo test --package bindgen-tests

- name: Run lib and integration tests
uses: rust3ds/test-runner/run-tests@v1
with:
args: --tests --all-features --workspace
args: --tests --all-features

- name: Build and run doc tests
uses: rust3ds/test-runner/run-tests@v1
with:
args: --doc --workspace
args: --doc

- name: Upload citra logs and capture videos
uses: actions/upload-artifact@v3
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[workspace]
members = ["bindgen-tests", "ctru-rs", "ctru-sys", "test-runner"]
default-members = ["ctru-rs", "ctru-sys"]
default-members = ["ctru-rs", "ctru-sys", "test-runner"]
resolver = "2"

[workspace.dependencies]
Expand Down
2 changes: 1 addition & 1 deletion ctru-sys/tests/layout_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//! thinks they should be at bindgen time.
#![feature(custom_test_frameworks)]
#![test_runner(test_runner::run_console)]
#![test_runner(test_runner::run_gdb)]

#[allow(non_snake_case)]
#[allow(non_upper_case_globals)]
Expand Down

0 comments on commit ba25f2f

Please sign in to comment.