diff --git a/services/bao-console/Cargo.toml b/services/bao-console/Cargo.toml index f1885d894..cc52dbf19 100644 --- a/services/bao-console/Cargo.toml +++ b/services/bao-console/Cargo.toml @@ -39,4 +39,5 @@ hosted-baosec = [ "cramium-emu", ] +modal-testing = [] default = [] diff --git a/services/bao-console/src/main.rs b/services/bao-console/src/main.rs index 6758ad36d..ec8034a13 100644 --- a/services/bao-console/src/main.rs +++ b/services/bao-console/src/main.rs @@ -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();