basic project setup
This commit is contained in:
parent
5507d11fe8
commit
dac87a1696
10 changed files with 1887 additions and 10 deletions
22
firmware/tests/hello_test.rs
Normal file
22
firmware/tests/hello_test.rs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
//! Demo test suite using embedded-test
|
||||
//!
|
||||
//! You can run this using `cargo test` as usual.
|
||||
|
||||
#![no_std]
|
||||
#![no_main]
|
||||
|
||||
#[cfg(test)]
|
||||
#[embedded_test::tests]
|
||||
mod tests {
|
||||
use esp_hal as _;
|
||||
|
||||
#[init]
|
||||
fn init() {
|
||||
let _ = esp_hal::init(esp_hal::Config::default());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn hello_test() {
|
||||
assert_eq!(1 + 1, 2);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue