summaryrefslogtreecommitdiff
path: root/test/lit/node
Commit message (Collapse)AuthorAgeFilesLines
* [NFC] Add a node test for fuzz_shell.js running on two input wasms (#7123)Alon Zakai2024-11-262-0/+40
| | | This feature is depended on by our ClusterFuzz integration.
* Fuzzing: Append more JS operations in run.py (#7098)Alon Zakai2024-11-211-0/+135
| | | | | | | | | | | | | | | The main fuzz_shell.js code builds and runs the given wasm. After the refactoring in #7096, it is simple to append to that file and add more build and run operations, adding more variety to the code, including cross-module interactions. Add logic to run.py to do that for ClusterFuzz. To test this, add a node test that builds a module with internal state that can actually show which module is being executed. The test appends a build+run operation, whose output prove that we are calling from the first module to the second and vice versa. Also add a ClusterFuzz test for run.py that verifies that we add a variety of build/run operations.
* [NFC] Refactor nice methods in fuzz_shell.js (#7096)Alon Zakai2024-11-201-0/+20
This mostly moves the code around and avoids some duplication. It also tracks the list of exports with both names and values, so that if we compile more than one module, we can still access exports from the previous. Also add a first test of running fuzz_shell.js in node. This does make build() append the exports, which was done before on the main module but not the second one. That only affects the wasm-split fuzzer, which is not active yet, so this is still NFC.