Skip to content

Commit 4ec8dde

Browse files
Update embedded-test (#251)
* build: Update embedded-test * docs: Udpate changelog * docs: Update changelog links * feat: Add app_desc macro * docs: Update changelog
1 parent f7090ed commit 4ec8dde

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
### Changed
1313

14+
- Updated `embedded-test` dependency to 0.7.0 (#251)
15+
1416
### Fixed
1517

18+
- Add App Descriptor macro to tests (#251)
19+
1620
### Removed
1721

1822
## [1.0.0] - 2025-10-30
@@ -187,7 +191,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
187191

188192
- Initial release
189193

190-
[Unreleased]: https://github.com/esp-rs/esp-generate/compare/v0.6.0...HEAD
194+
[Unreleased]: https://github.com/esp-rs/esp-generate/compare/v1.0.0...HEAD
195+
[1.0.0]: https://github.com/esp-rs/esp-generate/compare/v0.6.0...v1.0.0
191196
[0.6.0]: https://github.com/esp-rs/esp-generate/compare/v0.5.0...v0.6.0
192197
[0.5.0]: https://github.com/esp-rs/esp-generate/compare/v0.4.0...v0.5.0
193198
[0.4.0]: https://github.com/esp-rs/esp-generate/compare/v0.3.1...v0.4.0

template/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ critical-section = "1.2.0"
223223

224224
#IF option("embedded-test")
225225
[dev-dependencies]
226-
embedded-test = { version = "0.7.0-alpha.3", git = "https://github.com/probe-rs/embedded-test", branch = "next", features = [
226+
embedded-test = { version = "0.7.0", features = [
227227
#IF option("xtensa")
228228
"xtensa-semihosting",
229229
#ENDIF

template/tests/async_hello_test.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
#![no_std]
88
#![no_main]
99

10+
esp_bootloader_esp_idf::esp_app_desc!();
11+
1012
#[cfg(test)]
1113
#[embedded_test::tests(executor = esp_rtos::embassy::Executor::new())]
1214
mod tests {
@@ -22,9 +24,10 @@ mod tests {
2224
//IF option("esp32") || option("esp32s2") || option("esp32s3")
2325
esp_rtos::start(timg1.timer0);
2426
//ELSE
25-
let sw_interrupt = esp_hal::interrupt::software::SoftwareInterruptControl::new(peripherals.SW_INTERRUPT);
27+
let sw_interrupt =
28+
esp_hal::interrupt::software::SoftwareInterruptControl::new(peripherals.SW_INTERRUPT);
2629
esp_rtos::start(timg1.timer0, sw_interrupt.software_interrupt0);
27-
//ENDIF
30+
//ENDIF
2831

2932
//IF option("defmt")
3033
rtt_target::rtt_init_defmt!();

template/tests/hello_test.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
#![no_std]
77
#![no_main]
88

9+
esp_bootloader_esp_idf::esp_app_desc!();
10+
911
#[cfg(test)]
1012
#[embedded_test::tests]
1113
mod tests {

0 commit comments

Comments
 (0)