Add a script to run the wasm test inside docker.
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
use std::io::Read;
|
||||
|
||||
use organic::wasm_test::wasm_run_anonymous_compare;
|
||||
use organic::wasm_test::wasm_run_compare_on_file;
|
||||
|
||||
#[cfg(feature = "tracing")]
|
||||
use crate::init_tracing::init_telemetry;
|
||||
@@ -42,14 +43,13 @@ async fn main_body() -> Result<(), Box<dyn std::error::Error>> {
|
||||
}
|
||||
Ok(())
|
||||
} else {
|
||||
todo!()
|
||||
// for arg in args {
|
||||
// if run_compare_on_file(arg).await? {
|
||||
// } else {
|
||||
// Err("Diff results do not match.")?;
|
||||
// }
|
||||
// }
|
||||
// Ok(())
|
||||
for arg in args {
|
||||
if wasm_run_compare_on_file(arg).await? {
|
||||
} else {
|
||||
Err("Diff results do not match.")?;
|
||||
}
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user