Skip to content

Conversation

keithw
Copy link
Member

@keithw keithw commented Nov 8, 2024

Since #1661, run-roundtrip.py always converts wat0 -> wasm1 -> wat2 -> wasm3 and fails if any of the conversions fails. With the --stdout argument, it then prints the wat2 file; otherwise, it compares the wasm1 and wasm3 binaries and fails if they're different.

This PR makes the roundtrip comparison always happen (even with --stdout), unless an argument is given that asks wat2wasm to change the binary on purpose (in particular: --generate-names, which changes the name section, or --inline-exports which can reorder exports).

This didn't catch any bugs, but it gives some more test coverage.

(@SoniEx2)

@keithw keithw requested a review from sbc100 November 8, 2024 16:13
@keithw keithw merged commit 2e23b86 into main Nov 11, 2024
18 checks passed
@keithw keithw deleted the more-roundtrip-testing branch November 11, 2024 08:59
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.

2 participants