-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Henry Gressmann <[email protected]>
- Loading branch information
1 parent
2d5899a
commit 37f4dc5
Showing
3 changed files
with
19 additions
and
19 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
mod testsuite; | ||
use eyre::{eyre, Result}; | ||
use owo_colors::OwoColorize; | ||
use testsuite::TestSuite; | ||
use eyre::Result; | ||
|
||
fn main() -> Result<()> { | ||
let mut test_suite = TestSuite::new(); | ||
println!("Skipping Wasm Custom Page Sizes tests (Wast doesn't support the syntax yet)"); | ||
Ok(()) | ||
|
||
TestSuite::set_log_level(log::LevelFilter::Off); | ||
test_suite.run_spec_group(wasm_testsuite::get_proposal_tests("custom-page-sizes"))?; | ||
test_suite.save_csv("./tests/generated/wasm-custom-page-sizes.csv", env!("CARGO_PKG_VERSION"))?; | ||
// let mut test_suite = TestSuite::new(); | ||
// TestSuite::set_log_level(log::LevelFilter::Off); | ||
// test_suite.run_spec_group(wasm_testsuite::get_proposal_tests("custom-page-sizes"))?; | ||
// test_suite.save_csv("./tests/generated/wasm-custom-page-sizes.csv", env!("CARGO_PKG_VERSION"))?; | ||
|
||
if test_suite.failed() { | ||
println!(); | ||
Err(eyre!(format!("{}:\n{:#?}", "failed one or more tests".red().bold(), test_suite,))) | ||
} else { | ||
println!("\n\npassed all tests:\n{test_suite:#?}"); | ||
Ok(()) | ||
} | ||
// if test_suite.failed() { | ||
// println!(); | ||
// Err(eyre!(format!("{}:\n{:#?}", "failed one or more tests".red().bold(), test_suite,))) | ||
// } else { | ||
// println!("\n\npassed all tests:\n{test_suite:#?}"); | ||
// Ok(()) | ||
// } | ||
} |