Skip to content

Commit

Permalink
Update testing and README
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahSprenger committed Sep 30, 2024
1 parent 9ad8003 commit c108137
Show file tree
Hide file tree
Showing 7 changed files with 56 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
/target
/.vscode
/target
41 changes: 41 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "probe-rs-debug",
"request": "launch",
"name": "Probe-rs Debug Strain",
"chip": "STM32H733VGTx",
"coreConfigs": [
{
"programBinary": "${workspaceFolder}/target/thumbv7em-none-eabihf/debug/strain",
}
]
},
{
"type": "probe-rs-debug",
"request": "attach",
"name": "Probe-rs Debug Temperature",
"chip": "STM32H733VGTx",
"coreConfigs": [
{
"programBinary": "${workspaceFolder}/target/thumbv7em-none-eabihf/debug/temperature",
}
]
},
{
"type": "probe-rs-debug",
"request": "attach",
"name": "Probe-rs Debug Pressure",
"chip": "STM32H733VGTx",
"coreConfigs": [
{
"programBinary": "${workspaceFolder}/target/thumbv7em-none-eabihf/debug/pressure",
}
]
},
]
}
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"rust-analyzer.cargo.target": "thumbv7em-none-eabihf"
}
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,8 @@ uORocketry's rocket instrumentation system.
## Tests
- To run device tests `cargo make test-device`
- - `cargo make test-temperature-board`
- To run host tests `cargo make test-host`
- To run host tests `cargo make test-host`

## Helpful VSCode Extensions
- probe-rs.probe-rs-debugger
- rust-lang.rust-analyzer
2 changes: 2 additions & 0 deletions crates/common-arm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ embedded-sdmmc = "0.3.0"
messages = {workspace = true}
embedded-hal = {workspace = true}
nb = {workspace = true}
stm32h7xx-hal = { workspace = true }
panic-probe = { workspace = true }

[dev-dependencies]
defmt-test = { workspace = true }
Expand Down
4 changes: 2 additions & 2 deletions crates/common-arm/tests/example.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ mod tests {
}

#[test]
fn example_test(state: &mut State) {

fn example_test() {
assert!(true);
}
}

0 comments on commit c108137

Please sign in to comment.