oxedyne/fe2o3/fe2o3_core/tests/main.rs
681 bytes, 5 runs
created by r1870400018:128, 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 path; |
| 2 | mod string; |
| 3 | |
| 4 | use oxedyne_fe2o3_core::prelude::*; |
| 5 | |
| 6 | #[test] |
| 7 | fn 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 | fn run_tests() -> Outcome<()> { |
| 24 | |
| 25 | let filter = "all"; |
| 26 | res!(path::test_path(filter)); |
| 27 | //res!(string::test_string(filter)); |
| 28 | |
| 29 | Ok(()) |
| 30 | } |