thesuhas / orca

WebAssembly Transformation Library for the Component Model
https://thesuhas.github.io/orca/
Apache License 2.0
3 stars 0 forks source link

More roundtrips for component model #62

Closed ahuoguo closed 3 weeks ago

ahuoguo commented 1 month ago

The spec test is not there yet https://github.com/WebAssembly/component-model/tree/main/spec

ahuoguo commented 1 month ago

wasm-tools is my god https://github.com/bytecodealliance/wasm-tools/tree/main/tests/local/component-model

ahuoguo commented 1 month ago

https://github.com/bytecodealliance/wasm-tools/issues/1676 See also: https://github.com/bytecodealliance/wasmtime/tree/main/tests/misc_testsuite/component-model

ahuoguo commented 1 month ago

https://github.com/bytecodealliance/wasm-tools/blob/main/tests/roundtrip.rs#L5 maybe we should redesign the roundtrip tests like this

https://github.com/bytecodealliance/wasm-tools/blob/main/tests/roundtrip.rs#L269-L297

thesuhas commented 1 month ago

Testing strategy needs to be reworked in light of stuff getting renamed and Sections. Current idea is to impl Eq and PartialEq for Component on our own which goes through the Component in the order of the sections and then compares the IR.