add an extra test for checking if time server blocks on PDDB mount

gated with a feature so it doesn't bloat the shipping code base
This commit is contained in:
bunnie 2023-01-30 19:01:13 +08:00
parent 797bb0adc6
commit 8e440609c2

View file

@ -629,6 +629,21 @@ impl<'a> ShellCmdApi<'a> for Test {
write!(ret, "Ship mode request denied").unwrap();
}
}
#[cfg(feature-"extra-tests")]
"timeblock" => {
let time_cid = xous::connect(xous::SID::from_bytes(b"timeserverpublic").unwrap()).unwrap();
let result = xous::send_message(time_cid,
xous::Message::new_blocking_scalar(3, 0, 0, 0, 0)
).unwrap();
match result {
xous::Result::Scalar2(msb, lsb) => {
log::info!("GetTimeUtc: {}, {}", msb, lsb);
}
_ => {
log::info!("GetTimeUtc returned an unexpected result");
}
}
}
#[cfg(feature="ditherpunk")]
"modals" => {
modals::tests::spawn_test();