diff options
| -rw-r--r-- | crates/tinywasm/tests/generate-charts.rs | 8 | ||||
| -rw-r--r-- | crates/tinywasm/tests/generated/README.md | 7 | ||||
| -rw-r--r-- | crates/tinywasm/tests/generated/progress-2.0.svg | 54 | ||||
| -rw-r--r-- | crates/tinywasm/tests/generated/progress-mvp.svg | 2 |
4 files changed, 69 insertions, 2 deletions
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) + + + +# WebAssembly 2.0 Test Results (out of 27883 tests) + + 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 @@ +<svg width="1000" height="400" viewBox="0 0 1000 400" xmlns="http://www.w3.org/2000/svg"> +<rect x="0" y="0" width="1000" height="400" opacity="1" fill="#FFFFFF" stroke="none"/> +<text x="500" y="25" dy="0.76em" text-anchor="middle" font-family="Victor Mono" font-size="24.193548387096776" opacity="1" fill="#000000" font-weight="bold"> +MVP TESTSUITE +</text> +<text x="10" y="199" dy="0.76em" text-anchor="middle" font-family="Victor Mono" font-size="12.096774193548388" opacity="1" fill="#000000" font-weight="bold" transform="rotate(270, 10, 199)"> +Tests Passed +</text> +<text x="535" y="390" dy="-0.5ex" text-anchor="middle" font-family="Victor Mono" font-size="12.096774193548388" opacity="1" fill="#000000" font-weight="bold"> +TinyWasm Version +</text> +<line opacity="0.3" stroke="#000000" stroke-width="1" x1="80" y1="344" x2="989" y2="344"/> +<line opacity="0.3" stroke="#000000" stroke-width="1" x1="80" y1="292" x2="989" y2="292"/> +<line opacity="0.3" stroke="#000000" stroke-width="1" x1="80" y1="240" x2="989" y2="240"/> +<line opacity="0.3" stroke="#000000" stroke-width="1" x1="80" y1="188" x2="989" y2="188"/> +<line opacity="0.3" stroke="#000000" stroke-width="1" x1="80" y1="136" x2="989" y2="136"/> +<line opacity="0.3" stroke="#000000" stroke-width="1" x1="80" y1="84" x2="989" y2="84"/> +<polyline fill="none" opacity="1" stroke="#000000" stroke-width="1" points="79,54 79,344 "/> +<text x="70" y="344" dy="0.5ex" text-anchor="end" font-family="Victor Mono" font-size="12.096774193548388" opacity="1" fill="#000000"> +0 +</text> +<polyline fill="none" opacity="1" stroke="#000000" stroke-width="1" points="74,344 79,344 "/> +<text x="70" y="292" dy="0.5ex" text-anchor="end" font-family="Victor Mono" font-size="12.096774193548388" opacity="1" fill="#000000"> +5000 +</text> +<polyline fill="none" opacity="1" stroke="#000000" stroke-width="1" points="74,292 79,292 "/> +<text x="70" y="240" dy="0.5ex" text-anchor="end" font-family="Victor Mono" font-size="12.096774193548388" opacity="1" fill="#000000"> +10000 +</text> +<polyline fill="none" opacity="1" stroke="#000000" stroke-width="1" points="74,240 79,240 "/> +<text x="70" y="188" dy="0.5ex" text-anchor="end" font-family="Victor Mono" font-size="12.096774193548388" opacity="1" fill="#000000"> +15000 +</text> +<polyline fill="none" opacity="1" stroke="#000000" stroke-width="1" points="74,188 79,188 "/> +<text x="70" y="136" dy="0.5ex" text-anchor="end" font-family="Victor Mono" font-size="12.096774193548388" opacity="1" fill="#000000"> +20000 +</text> +<polyline fill="none" opacity="1" stroke="#000000" stroke-width="1" points="74,136 79,136 "/> +<text x="70" y="84" dy="0.5ex" text-anchor="end" font-family="Victor Mono" font-size="12.096774193548388" opacity="1" fill="#000000"> +25000 +</text> +<polyline fill="none" opacity="1" stroke="#000000" stroke-width="1" points="74,84 79,84 "/> +<polyline fill="none" opacity="1" stroke="#000000" stroke-width="1" points="80,345 989,345 "/> +<text x="307" y="355" dy="0.76em" text-anchor="middle" font-family="Victor Mono" font-size="12.096774193548388" opacity="1" fill="#000000"> +v0.3.0 (26722) +</text> +<polyline fill="none" opacity="1" stroke="#000000" stroke-width="1" points="307,345 307,350 "/> +<text x="761" y="355" dy="0.76em" text-anchor="middle" font-family="Victor Mono" font-size="12.096774193548388" opacity="1" fill="#000000"> +v0.4.0-alpha.0 (27464) +</text> +<polyline fill="none" opacity="1" stroke="#000000" stroke-width="1" points="761,345 761,350 "/> +<rect x="85" y="67" width="444" height="277" opacity="0.5" fill="#0000FF" stroke="none"/> +<rect x="539" y="59" width="445" height="285" opacity="0.5" fill="#0000FF" stroke="none"/> +</svg> 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) </text> <polyline fill="none" opacity="1" stroke="#000000" stroke-width="1" points="898,345 898,350 "/> -<rect x="85" y="212" width="171" height="132" opacity="0.5" fill="#0000FF" stroke="none"/> <rect x="630" y="68" width="172" height="276" opacity="0.5" fill="#0000FF" stroke="none"/> <rect x="448" y="92" width="172" height="252" opacity="0.5" fill="#0000FF" stroke="none"/> <rect x="812" y="54" width="172" height="290" opacity="0.5" fill="#0000FF" stroke="none"/> <rect x="266" y="185" width="172" height="159" opacity="0.5" fill="#0000FF" stroke="none"/> +<rect x="85" y="212" width="171" height="132" opacity="0.5" fill="#0000FF" stroke="none"/> </svg> |
