Skip to content

Commit

Permalink
Merge pull request #601 from jannic/issue-599
Browse files Browse the repository at this point in the history
Fix / document on-target tests
  • Loading branch information
ithinuel authored May 6, 2023
2 parents 06b98e0 + 8ac9115 commit b8d9124
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 125 deletions.
4 changes: 0 additions & 4 deletions on-target-tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ harness = false
name = "dma_spi_loopback_u16"
harness = false

[[test]]
name = "dma_drop"
harness = false

[[test]]
name = "dma_dyn"
harness = false
Expand Down
12 changes: 12 additions & 0 deletions on-target-tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,15 @@ To run a specific test (to make developing tests faster)
```system
CARGO_TARGET_THUMBV6M_NONE_EABI_RUNNER=probe-run cargo test --test my_new_test -- --chip rp2040
```

## Prerequisites

Some of the tests need connections between specific pins.

Currently, the following connections are required:

- Connect GPIO 4 to GPIO 7 (pins 6 and 10 an a Pico) for the SPI loopback tests

If you add tests that need some hardware setup, make sure that they are
compatible to the existing on-target tests, so all tests can be run with
a single configuration.
121 changes: 0 additions & 121 deletions on-target-tests/tests/dma_drop.rs

This file was deleted.

2 changes: 2 additions & 0 deletions on-target-tests/tests/dma_spi_loopback_u16.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! This test needs a connection between GPIO 4 and GPIO 7 (pins 6 and 10 an a Pico)

#![no_std]
#![no_main]
#![cfg(test)]
Expand Down
2 changes: 2 additions & 0 deletions on-target-tests/tests/dma_spi_loopback_u8.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! This test needs a connection between GPIO 4 and GPIO 7 (pins 6 and 10 an a Pico)

#![no_std]
#![no_main]
#![cfg(test)]
Expand Down

0 comments on commit b8d9124

Please sign in to comment.