diff --git a/integration-testing/src/main.rs b/integration-testing/src/main.rs index bb15c0cb3..f93abae9b 100644 --- a/integration-testing/src/main.rs +++ b/integration-testing/src/main.rs @@ -1,4 +1,3 @@ - use std::io::Cursor; use std::path::Path; use std::time::Instant; @@ -6,7 +5,12 @@ use std::time::Instant; use strafesnet_physics::physics::{PhysicsData,PhysicsState,PhysicsContext}; fn main(){ - test_determinism().unwrap(); + let arg=std::env::args().skip(1).next(); + match arg.as_deref(){ + Some("determinism")|None=>test_determinism().unwrap(), + Some("replay")=>run_replay().unwrap(), + _=>println!("invalid argument"), + } } #[allow(unused)]