add a test target with limited scope

this is for SoC testing with i.e. no peripherals or simulated
peripherals in a simulated environment
This commit is contained in:
bunnie 2025-04-20 07:48:29 -07:00
parent 2f467d6f23
commit 31dcab40aa
2 changed files with 4 additions and 3 deletions

View file

@ -39,7 +39,8 @@ board-baosec = [
"utralib/cramium-soc",
"ux-api/board-baosec",
] # USB form factor token
loader-baosec = ["camera-ov2640", "display-sh1107", "axp2101", "ux-api"]
loader-baosec = ["camera-ov2640", "display-sh1107", "axp2101", "ux-api/loader-baosec"]
test-baosec = ["ux-api/loader-baosec", "camera-ov2640"]
hosted-baosec = [] # emulated hardware on x86 platform
board-baosor = [
"camera-ov2640",

View file

@ -1,6 +1,6 @@
#[cfg(any(feature = "board-baosec", feature = "loader-baosec"))]
#[cfg(any(feature = "board-baosec", feature = "loader-baosec", feature = "test-baosec"))]
pub mod baosec;
#[cfg(any(feature = "board-baosec", feature = "loader-baosec"))]
#[cfg(any(feature = "board-baosec", feature = "loader-baosec", feature = "test-baosec"))]
pub use baosec::*;
#[cfg(any(feature = "board-baosor", feature = "loader-baosor"))]
pub mod baosor;