setup modals testing feature in the console runner

This commit is contained in:
bunnie 2025-03-05 20:50:09 +08:00
parent 77d18530f7
commit 5a36ebbb58
2 changed files with 7 additions and 0 deletions

View file

@ -39,4 +39,5 @@ hosted-baosec = [
"cramium-emu",
]
modal-testing = []
default = []

View file

@ -12,6 +12,12 @@ fn main() {
let tt = ticktimer::Ticktimer::new().unwrap();
shell::start_shell();
#[cfg(feature = "modal-testing")]
{
log::set_max_level(log::LevelFilter::Debug);
modals::tests::spawn_test();
}
loop {
// just sleep as this is the parent thread
tt.sleep_ms(120_000).ok();