From 716b7631ed955a808180c28b4ab985d3b0300122 Mon Sep 17 00:00:00 2001 From: Henry Gressmann Date: Sun, 28 Jan 2024 22:50:31 +0100 Subject: [PATCH] docs: tests Signed-off-by: Henry Gressmann --- crates/tinywasm/tests/generate-charts.rs | 8 ++- crates/tinywasm/tests/generated/README.md | 7 +++ .../tinywasm/tests/generated/progress-2.0.svg | 54 +++++++++++++++++++ .../tinywasm/tests/generated/progress-mvp.svg | 2 +- 4 files changed, 69 insertions(+), 2 deletions(-) create mode 100644 crates/tinywasm/tests/generated/README.md create mode 100644 crates/tinywasm/tests/generated/progress-2.0.svg diff --git a/crates/tinywasm/tests/generate-charts.rs b/crates/tinywasm/tests/generate-charts.rs index e8e323d..27c0782 100644 --- a/crates/tinywasm/tests/generate-charts.rs +++ b/crates/tinywasm/tests/generate-charts.rs @@ -11,7 +11,6 @@ fn generate_charts() -> Result<()> { return Ok(()); } - // Create a line chart charts::create_progress_chart( std::path::Path::new("./tests/generated/mvp.csv"), std::path::Path::new("./tests/generated/progress-mvp.svg"), @@ -19,5 +18,12 @@ fn generate_charts() -> Result<()> { println!("created progress chart: ./tests/generated/progress-mvp.svg"); + charts::create_progress_chart( + std::path::Path::new("./tests/generated/2.0.csv"), + std::path::Path::new("./tests/generated/progress-2.0.svg"), + )?; + + println!("created progress chart: ./tests/generated/progress-2.0.svg"); + Ok(()) } diff --git a/crates/tinywasm/tests/generated/README.md b/crates/tinywasm/tests/generated/README.md new file mode 100644 index 0000000..40acee5 --- /dev/null +++ b/crates/tinywasm/tests/generated/README.md @@ -0,0 +1,7 @@ +# WebAssembly 1.0 Test Results (out of 20254 tests) + +![](./progress-mvp.svg) + +# WebAssembly 2.0 Test Results (out of 27883 tests) + +![](./progress-2.0.svg) diff --git a/crates/tinywasm/tests/generated/progress-2.0.svg b/crates/tinywasm/tests/generated/progress-2.0.svg new file mode 100644 index 0000000..e8e9313 --- /dev/null +++ b/crates/tinywasm/tests/generated/progress-2.0.svg @@ -0,0 +1,54 @@ + + + +MVP TESTSUITE + + +Tests Passed + + +TinyWasm Version + + + + + + + + + +0 + + + +5000 + + + +10000 + + + +15000 + + + +20000 + + + +25000 + + + + +v0.3.0 (26722) + + + +v0.4.0-alpha.0 (27464) + + + + + diff --git a/crates/tinywasm/tests/generated/progress-mvp.svg b/crates/tinywasm/tests/generated/progress-mvp.svg index c1200f5..d9697ed 100644 --- a/crates/tinywasm/tests/generated/progress-mvp.svg +++ b/crates/tinywasm/tests/generated/progress-mvp.svg @@ -56,9 +56,9 @@ v0.2.0 (19344) v0.3.0 (20254) - +