embassy-boot: ensure tests can run on the stable compiler
This commit is contained in:
parent
3bf41e9a06
commit
a73f9474a0
2
.github/workflows/rust.yml
vendored
2
.github/workflows/rust.yml
vendored
@ -71,7 +71,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Test boot
|
- name: Test boot
|
||||||
working-directory: ./embassy-boot/boot
|
working-directory: ./embassy-boot/boot
|
||||||
run: cargo test --features nightly && cargo test --features "ed25519-dalek,nightly" && cargo test --features "ed25519-salty,nightly"
|
run: cargo test && cargo test --features nightly && cargo test --features "ed25519-dalek,nightly" && cargo test --features "ed25519-salty,nightly"
|
||||||
|
|
||||||
- name: Test sync
|
- name: Test sync
|
||||||
working-directory: ./embassy-sync
|
working-directory: ./embassy-sync
|
||||||
|
@ -520,6 +520,7 @@ mod tests {
|
|||||||
use crate::mem_flash::MemFlash;
|
use crate::mem_flash::MemFlash;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
#[cfg(feature = "nightly")]
|
||||||
fn can_verify_sha1() {
|
fn can_verify_sha1() {
|
||||||
const STATE: Partition = Partition::new(0, 4096);
|
const STATE: Partition = Partition::new(0, 4096);
|
||||||
const DFU: Partition = Partition::new(65536, 131072);
|
const DFU: Partition = Partition::new(65536, 131072);
|
||||||
|
@ -83,7 +83,7 @@ mod tests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(not(feature = "_verify"))]
|
#[cfg(all(feature = "nightly", not(feature = "_verify")))]
|
||||||
fn test_swap_state() {
|
fn test_swap_state() {
|
||||||
const STATE: Partition = Partition::new(0, 4096);
|
const STATE: Partition = Partition::new(0, 4096);
|
||||||
const ACTIVE: Partition = Partition::new(4096, 61440);
|
const ACTIVE: Partition = Partition::new(4096, 61440);
|
||||||
@ -136,7 +136,7 @@ mod tests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(not(feature = "_verify"))]
|
#[cfg(all(feature = "nightly", not(feature = "_verify")))]
|
||||||
fn test_separate_flash_active_page_biggest() {
|
fn test_separate_flash_active_page_biggest() {
|
||||||
const STATE: Partition = Partition::new(2048, 4096);
|
const STATE: Partition = Partition::new(2048, 4096);
|
||||||
const ACTIVE: Partition = Partition::new(4096, 16384);
|
const ACTIVE: Partition = Partition::new(4096, 16384);
|
||||||
@ -173,7 +173,7 @@ mod tests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(not(feature = "_verify"))]
|
#[cfg(all(feature = "nightly", not(feature = "_verify")))]
|
||||||
fn test_separate_flash_dfu_page_biggest() {
|
fn test_separate_flash_dfu_page_biggest() {
|
||||||
const STATE: Partition = Partition::new(2048, 4096);
|
const STATE: Partition = Partition::new(2048, 4096);
|
||||||
const ACTIVE: Partition = Partition::new(4096, 16384);
|
const ACTIVE: Partition = Partition::new(4096, 16384);
|
||||||
@ -212,7 +212,7 @@ mod tests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(feature = "_verify")]
|
#[cfg(all(feature = "nightly", feature = "_verify"))]
|
||||||
fn test_verify() {
|
fn test_verify() {
|
||||||
// The following key setup is based on:
|
// The following key setup is based on:
|
||||||
// https://docs.rs/ed25519-dalek/latest/ed25519_dalek/#example
|
// https://docs.rs/ed25519-dalek/latest/ed25519_dalek/#example
|
||||||
|
Loading…
Reference in New Issue
Block a user