oxedyne/fe2o3/fe2o3_o3db_sync/tests/main.rs
1.1 KiB, 26 runs
created by r1870400018:838, 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 basic; |
| 2 | mod chunk_leak; |
| 3 | mod chunked_value; |
| 4 | mod dal; |
| 5 | mod delete_replay; |
| 6 | mod durability; |
| 7 | mod perf; |
| 8 | mod rollover; |
| 9 | mod scan; |
| 10 | mod scan_torn_tail; |
| 11 | |
| 12 | use oxedyne_fe2o3_core::prelude::*; |
| 13 | |
| 14 | |
| 15 | #[test] |
| 16 | fn main() -> Outcome<()> { |
| 17 | |
| 18 | // Separate the tests out to a run_tests function so that we can funnel any outcome, be it an |
| 19 | // error or ok, back into this function before closing out with a single call to log_finish_wait! to |
| 20 | // allow logger thread completion. Otherwise, we may not see all the logger output before the |
| 21 | // main thread finishes. |
| 22 | |
| 23 | log_set_level!("trace"); |
| 24 | |
| 25 | let outcome = run_tests(); |
| 26 | |
| 27 | log_finish_wait!(); |
| 28 | |
| 29 | outcome |
| 30 | } |
| 31 | |
| 32 | fn run_tests() -> Outcome<()> { |
| 33 | |
| 34 | let filter = "all"; |
| 35 | res!(chunk_leak::test_chunk_leak(filter)); |
| 36 | res!(rollover::test_rollover(filter)); |
| 37 | res!(basic::test_basic(filter)); |
| 38 | res!(dal::test_docs(filter)); |
| 39 | res!(scan::test_scan(filter)); |
| 40 | res!(scan_torn_tail::test_scan_torn_tail(filter)); |
| 41 | res!(durability::test_durability(filter)); |
| 42 | res!(delete_replay::test_delete_replay(filter)); |
| 43 | res!(chunked_value::test_chunked_value(filter)); |
| 44 | //res!(perf::test_perf("all")); |
| 45 | |
| 46 | Ok(()) |
| 47 | } |