diff options
| author | Dario Nieuwenhuis <[email protected]> | 2023-05-30 00:10:36 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2023-05-30 01:10:53 +0200 |
| commit | 020e956f1ba5c0b3baf75b02f286218f661e1c02 (patch) | |
| tree | 486197f43cb3124e5d185d0a67ff4819afab90ff /tests/nrf | |
| parent | 3760bdbb1b7b8d8aa8f59befdc31fbf9e09aaa5a (diff) | |
ci: run HIL tests in parallel.
Diffstat (limited to 'tests/nrf')
| -rw-r--r-- | tests/nrf/.cargo/config.toml | 2 | ||||
| -rw-r--r-- | tests/nrf/Cargo.toml | 2 | ||||
| -rw-r--r-- | tests/nrf/build.rs | 1 | ||||
| -rw-r--r-- | tests/nrf/src/bin/buffered_uart.rs | 2 | ||||
| -rw-r--r-- | tests/nrf/src/bin/buffered_uart_spam.rs | 2 | ||||
| -rw-r--r-- | tests/nrf/src/bin/timer.rs | 2 | ||||
| -rw-r--r-- | tests/nrf/src/common.rs | 1 |
7 files changed, 11 insertions, 1 deletions
diff --git a/tests/nrf/.cargo/config.toml b/tests/nrf/.cargo/config.toml index 4eec189d4..03995f963 100644 --- a/tests/nrf/.cargo/config.toml +++ b/tests/nrf/.cargo/config.toml | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | [target.'cfg(all(target_arch = "arm", target_os = "none"))'] | 1 | [target.'cfg(all(target_arch = "arm", target_os = "none"))'] |
| 2 | #runner = "teleprobe local run --chip nRF52840_xxAA --elf" | 2 | #runner = "teleprobe local run --chip nRF52840_xxAA --elf" |
| 3 | runner = "teleprobe client run --target nrf52840-dk --elf" | 3 | runner = "teleprobe client run" |
| 4 | 4 | ||
| 5 | [build] | 5 | [build] |
| 6 | target = "thumbv7em-none-eabi" | 6 | target = "thumbv7em-none-eabi" |
diff --git a/tests/nrf/Cargo.toml b/tests/nrf/Cargo.toml index ac38229a6..9735c87d9 100644 --- a/tests/nrf/Cargo.toml +++ b/tests/nrf/Cargo.toml | |||
| @@ -5,6 +5,8 @@ version = "0.1.0" | |||
| 5 | license = "MIT OR Apache-2.0" | 5 | license = "MIT OR Apache-2.0" |
| 6 | 6 | ||
| 7 | [dependencies] | 7 | [dependencies] |
| 8 | teleprobe-meta = "1" | ||
| 9 | |||
| 8 | embassy-futures = { version = "0.1.0", path = "../../embassy-futures" } | 10 | embassy-futures = { version = "0.1.0", path = "../../embassy-futures" } |
| 9 | embassy-sync = { version = "0.2.0", path = "../../embassy-sync", features = ["defmt", "nightly"] } | 11 | embassy-sync = { version = "0.2.0", path = "../../embassy-sync", features = ["defmt", "nightly"] } |
| 10 | embassy-executor = { version = "0.2.0", path = "../../embassy-executor", features = ["arch-cortex-m", "executor-thread", "defmt", "nightly", "integrated-timers"] } | 12 | embassy-executor = { version = "0.2.0", path = "../../embassy-executor", features = ["arch-cortex-m", "executor-thread", "defmt", "nightly", "integrated-timers"] } |
diff --git a/tests/nrf/build.rs b/tests/nrf/build.rs index 6f4872249..93e2a28cf 100644 --- a/tests/nrf/build.rs +++ b/tests/nrf/build.rs | |||
| @@ -11,6 +11,7 @@ fn main() -> Result<(), Box<dyn Error>> { | |||
| 11 | println!("cargo:rustc-link-arg-bins=--nmagic"); | 11 | println!("cargo:rustc-link-arg-bins=--nmagic"); |
| 12 | println!("cargo:rustc-link-arg-bins=-Tlink_ram.x"); | 12 | println!("cargo:rustc-link-arg-bins=-Tlink_ram.x"); |
| 13 | println!("cargo:rustc-link-arg-bins=-Tdefmt.x"); | 13 | println!("cargo:rustc-link-arg-bins=-Tdefmt.x"); |
| 14 | println!("cargo:rustc-link-arg-bins=-Tteleprobe.x"); | ||
| 14 | 15 | ||
| 15 | Ok(()) | 16 | Ok(()) |
| 16 | } | 17 | } |
diff --git a/tests/nrf/src/bin/buffered_uart.rs b/tests/nrf/src/bin/buffered_uart.rs index e73d4f0b0..72a4cb4ef 100644 --- a/tests/nrf/src/bin/buffered_uart.rs +++ b/tests/nrf/src/bin/buffered_uart.rs | |||
| @@ -1,6 +1,8 @@ | |||
| 1 | #![no_std] | 1 | #![no_std] |
| 2 | #![no_main] | 2 | #![no_main] |
| 3 | #![feature(type_alias_impl_trait)] | 3 | #![feature(type_alias_impl_trait)] |
| 4 | #[path = "../common.rs"] | ||
| 5 | mod common; | ||
| 4 | 6 | ||
| 5 | use defmt::{assert_eq, *}; | 7 | use defmt::{assert_eq, *}; |
| 6 | use embassy_executor::Spawner; | 8 | use embassy_executor::Spawner; |
diff --git a/tests/nrf/src/bin/buffered_uart_spam.rs b/tests/nrf/src/bin/buffered_uart_spam.rs index 74eda6d01..50960206f 100644 --- a/tests/nrf/src/bin/buffered_uart_spam.rs +++ b/tests/nrf/src/bin/buffered_uart_spam.rs | |||
| @@ -1,6 +1,8 @@ | |||
| 1 | #![no_std] | 1 | #![no_std] |
| 2 | #![no_main] | 2 | #![no_main] |
| 3 | #![feature(type_alias_impl_trait)] | 3 | #![feature(type_alias_impl_trait)] |
| 4 | #[path = "../common.rs"] | ||
| 5 | mod common; | ||
| 4 | 6 | ||
| 5 | use core::mem; | 7 | use core::mem; |
| 6 | use core::ptr::NonNull; | 8 | use core::ptr::NonNull; |
diff --git a/tests/nrf/src/bin/timer.rs b/tests/nrf/src/bin/timer.rs index 9b9b5fb28..607c5bbf1 100644 --- a/tests/nrf/src/bin/timer.rs +++ b/tests/nrf/src/bin/timer.rs | |||
| @@ -1,6 +1,8 @@ | |||
| 1 | #![no_std] | 1 | #![no_std] |
| 2 | #![no_main] | 2 | #![no_main] |
| 3 | #![feature(type_alias_impl_trait)] | 3 | #![feature(type_alias_impl_trait)] |
| 4 | #[path = "../common.rs"] | ||
| 5 | mod common; | ||
| 4 | 6 | ||
| 5 | use defmt::{assert, info}; | 7 | use defmt::{assert, info}; |
| 6 | use embassy_executor::Spawner; | 8 | use embassy_executor::Spawner; |
diff --git a/tests/nrf/src/common.rs b/tests/nrf/src/common.rs new file mode 100644 index 000000000..1a05ac1c5 --- /dev/null +++ b/tests/nrf/src/common.rs | |||
| @@ -0,0 +1 @@ | |||
| teleprobe_meta::target!(b"nrf52840-dk"); | |||
