diff options
Diffstat (limited to 'embassy-boot')
| -rw-r--r-- | embassy-boot/boot/src/firmware_updater.rs | 1 | ||||
| -rw-r--r-- | embassy-boot/boot/src/lib.rs | 8 |
2 files changed, 5 insertions, 4 deletions
diff --git a/embassy-boot/boot/src/firmware_updater.rs b/embassy-boot/boot/src/firmware_updater.rs index 1f2a6d24e..92987825f 100644 --- a/embassy-boot/boot/src/firmware_updater.rs +++ b/embassy-boot/boot/src/firmware_updater.rs | |||
| @@ -520,6 +520,7 @@ mod tests { | |||
| 520 | use crate::mem_flash::MemFlash; | 520 | use crate::mem_flash::MemFlash; |
| 521 | 521 | ||
| 522 | #[test] | 522 | #[test] |
| 523 | #[cfg(feature = "nightly")] | ||
| 523 | fn can_verify_sha1() { | 524 | fn can_verify_sha1() { |
| 524 | const STATE: Partition = Partition::new(0, 4096); | 525 | const STATE: Partition = Partition::new(0, 4096); |
| 525 | const DFU: Partition = Partition::new(65536, 131072); | 526 | const DFU: Partition = Partition::new(65536, 131072); |
diff --git a/embassy-boot/boot/src/lib.rs b/embassy-boot/boot/src/lib.rs index e268d8883..8eb3ba96d 100644 --- a/embassy-boot/boot/src/lib.rs +++ b/embassy-boot/boot/src/lib.rs | |||
| @@ -83,7 +83,7 @@ mod tests { | |||
| 83 | } | 83 | } |
| 84 | 84 | ||
| 85 | #[test] | 85 | #[test] |
| 86 | #[cfg(not(feature = "_verify"))] | 86 | #[cfg(all(feature = "nightly", not(feature = "_verify")))] |
| 87 | fn test_swap_state() { | 87 | fn test_swap_state() { |
| 88 | const STATE: Partition = Partition::new(0, 4096); | 88 | const STATE: Partition = Partition::new(0, 4096); |
| 89 | const ACTIVE: Partition = Partition::new(4096, 61440); | 89 | const ACTIVE: Partition = Partition::new(4096, 61440); |
| @@ -136,7 +136,7 @@ mod tests { | |||
| 136 | } | 136 | } |
| 137 | 137 | ||
| 138 | #[test] | 138 | #[test] |
| 139 | #[cfg(not(feature = "_verify"))] | 139 | #[cfg(all(feature = "nightly", not(feature = "_verify")))] |
| 140 | fn test_separate_flash_active_page_biggest() { | 140 | fn test_separate_flash_active_page_biggest() { |
| 141 | const STATE: Partition = Partition::new(2048, 4096); | 141 | const STATE: Partition = Partition::new(2048, 4096); |
| 142 | const ACTIVE: Partition = Partition::new(4096, 16384); | 142 | const ACTIVE: Partition = Partition::new(4096, 16384); |
| @@ -173,7 +173,7 @@ mod tests { | |||
| 173 | } | 173 | } |
| 174 | 174 | ||
| 175 | #[test] | 175 | #[test] |
| 176 | #[cfg(not(feature = "_verify"))] | 176 | #[cfg(all(feature = "nightly", not(feature = "_verify")))] |
| 177 | fn test_separate_flash_dfu_page_biggest() { | 177 | fn test_separate_flash_dfu_page_biggest() { |
| 178 | const STATE: Partition = Partition::new(2048, 4096); | 178 | const STATE: Partition = Partition::new(2048, 4096); |
| 179 | const ACTIVE: Partition = Partition::new(4096, 16384); | 179 | const ACTIVE: Partition = Partition::new(4096, 16384); |
| @@ -212,7 +212,7 @@ mod tests { | |||
| 212 | } | 212 | } |
| 213 | 213 | ||
| 214 | #[test] | 214 | #[test] |
| 215 | #[cfg(feature = "_verify")] | 215 | #[cfg(all(feature = "nightly", feature = "_verify"))] |
| 216 | fn test_verify() { | 216 | fn test_verify() { |
| 217 | // The following key setup is based on: | 217 | // The following key setup is based on: |
| 218 | // https://docs.rs/ed25519-dalek/latest/ed25519_dalek/#example | 218 | // https://docs.rs/ed25519-dalek/latest/ed25519_dalek/#example |
