mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-02-06 06:55:07 +00:00
b2eb7d838d
- Update spec test cases to commit bc76fd79cfe61033d7f4ad4a7e8fc4f996dc5ba8 on Apr. 3 - Update wabt binary to 1.0.34 to support newer spec cases - Add comparison between table declared elem type and table elem segment value type - Add a function to decide whether to execute test cases in a running mode - Keep using interpreter in GC spec because wat2wasm in wabt can't compile if.wast w/o errors - Re-factoring threads spec test case processing - Since wabt 1.0.34 release isn't compatible with ubuntu 20.04, compile it from source code - Disable CI to run aot multi-module temporarily, and will enable it in another PR
23 lines
545 B
Bash
Executable File
23 lines
545 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Copyright (C) 2023 Amazon Inc. All rights reserved.
|
|
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
|
|
set -e
|
|
|
|
WAT2WASM_CMD=$1
|
|
WAMRC_CMD=$2
|
|
IWASM_CMD=$3
|
|
|
|
for wat_file in ../../wamr-compiler/*.wat; do
|
|
wasm_file="${wat_file%.wat}.wasm"
|
|
aot_file="${wat_file%.wat}.aot"
|
|
|
|
echo "Compiling $wat_file to $wasm_file"
|
|
$WAT2WASM_CMD "$wat_file" -o "$wasm_file"
|
|
echo "Compiling $wasm_file to $aot_file"
|
|
$WAMRC_CMD -o $aot_file $wasm_file
|
|
echo "Testing $aot_file"
|
|
$IWASM_CMD -f _start "$aot_file"
|
|
done
|