mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:17:44 +00:00
LibWasm+Meta: Implement instantiation/execution primitives in test-wasm
This also optionally generates a test suite from the WebAssembly testsuite, which can be enabled via passing `INCLUDE_WASM_SPEC_TESTS` to cmake, which will generate test-wasm-compatible tests and the required fixtures. The generated directories are excluded from git since there's no point in committing them.
This commit is contained in:
parent
541091500c
commit
24b2a6c93a
5 changed files with 396 additions and 7 deletions
16
Meta/generate-libwasm-spec-test.sh
Normal file
16
Meta/generate-libwasm-spec-test.sh
Normal file
|
@ -0,0 +1,16 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
if [ $# -ne 4 ]; then
|
||||
echo "Usage: $0 <input spec file> <output path> <name> <module output path>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
INPUT_FILE="$1"
|
||||
OUTPUT_PATH="$2"
|
||||
NAME="$3"
|
||||
MODULE_OUTPUT_PATH="$4"
|
||||
|
||||
mkdir -p "$OUTPUT_PATH"
|
||||
mkdir -p "$MODULE_OUTPUT_PATH"
|
||||
|
||||
python3 "$(dirname "$0")/generate-libwasm-spec-test.py" "$INPUT_FILE" "$NAME" "$MODULE_OUTPUT_PATH" | prettier --stdin-filepath "test-$NAME.js" > "$OUTPUT_PATH/$NAME.js"
|
Loading…
Add table
Add a link
Reference in a new issue