Oregami
Repositories/oxedyne/fe2o3

oxedyne/fe2o3/fe2o3_shield/tests/main.rs

717 bytes, 14 runs

created by r1870400018:896, which is this file's identity for as long as the history lasts, whatever it is later renamed to

download · who wrote it · its history

1//mod msg;
2mod sim;
3
4use oxedyne_fe2o3_core::prelude::*;
5
6#[test]
7fn main() -> Outcome<()> {
8
9 // Separate the tests out to a run_tests function so that we can funnel any outcome, be it an
10 // error or ok, back into this function before closing out with a single call to log_finish_wait! to
11 // allow logger thread completion. Otherwise, we may not see all the logger output before the
12 // main thread finishes.
13
14 log_set_level!("trace");
15
16 let outcome = run_tests();
17
18 log_finish_wait!();
19
20 outcome
21}
22
23/// Run as
24/// ```ignore
25/// cargo test main -- --nocapture
26/// ```
27fn run_tests() -> Outcome<()> {
28
29 //res!(msg::test_msg("all"));
30 res!(sim::test_sim("all"));
31
32 Ok(())
33}