Add internal tests for WASI threads (#1963)

Add internal tests for WASI threads. These tests are run in addition to
the ones in the proposal:
https://github.com/WebAssembly/wasi-threads/tree/main/test/testsuite.

The purpose is to test additional and more complex scenarios.
This commit is contained in:
Enrico Loparco
2023-03-09 02:03:16 +01:00
committed by GitHub
parent 289fc5efbf
commit 128c0ea899
36 changed files with 864 additions and 11 deletions

View File

@ -10,6 +10,7 @@ readonly TARGET=$2
readonly WORK_DIR=$PWD
readonly PLATFORM=$(uname -s | tr A-Z a-z)
readonly WAMR_DIR="${WORK_DIR}/../../../.."
readonly IWASM_CMD="${WORK_DIR}/../../../../product-mini/platforms/${PLATFORM}/build/iwasm"
readonly WAMRC_CMD="${WORK_DIR}/../../../../wamr-compiler/build/wamrc"
@ -21,7 +22,8 @@ if [[ $MODE != "aot" ]];then
-t \
tests/c/testsuite/ \
tests/assemblyscript/testsuite/ \
tests/proposals/wasi-threads/
tests/proposals/wasi-threads/ \
${WAMR_DIR}/core/iwasm/libraries/lib-wasi-threads/test/
exit_code=${PIPESTATUS[0]}
deactivate
else