Skip to content

Add a Lime1 test file.#254

Merged
sunfishcode merged 2 commits intoWebAssembly:mainfrom
sunfishcode:sunfishcode/lime1-testcase
Jun 23, 2025
Merged

Add a Lime1 test file.#254
sunfishcode merged 2 commits intoWebAssembly:mainfrom
sunfishcode:sunfishcode/lime1-testcase

Conversation

@sunfishcode
Copy link
Copy Markdown
Member

@sunfishcode sunfishcode commented Jun 19, 2025

This PR adds a simple wast test file for the Lime1 virtual CPU. It is not a comprehensive conformance test, but it does at least mention all of Lime1's documented features, so it can be used as a quick way to determine if an engine supports the Lime1 feature set.

I've tested the test file with Wasmtime and the spec interpreter.

Some of the individual tests are derived from bytecodealliance/wasm-tools#2186.

This PR adds a simple wast test file for the [Lime1 virtual CPU]. It is
not a comprehensive conformance test, but it does at least mention all of
Lime1's documented features, so it can be used as a quick way to
determine if an engine supports the Lime1 feature set.

I've tested the test file with both Wasmtime and the [spec interpreter].

Some of the individual tests are derived from bytecodealliance/wasm-tools#2186.

[spec interpreter]: https://github.com/WebAssembly/spec/
[Lime1 virtual CPU]: https://github.com/WebAssembly/tool-conventions/blob/main/Lime.md#lime1
Copy link
Copy Markdown
Contributor

@yamt yamt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about putting it under "test" directory? otherwise lgtm.

@sunfishcode
Copy link
Copy Markdown
Member Author

Merging, as this is just adding a test for the existing definition.

@sunfishcode sunfishcode merged commit 3822c2b into WebAssembly:main Jun 23, 2025
@sunfishcode sunfishcode deleted the sunfishcode/lime1-testcase branch June 23, 2025 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants