Add test for validating linear memory size updates (#2078)
This commit is contained in:
8
core/iwasm/libraries/lib-wasi-threads/test/build.sh
Normal file → Executable file
8
core/iwasm/libraries/lib-wasi-threads/test/build.sh
Normal file → Executable file
@ -12,6 +12,12 @@ WAMR_DIR=../../../../..
|
||||
for test_c in *.c; do
|
||||
test_wasm="$(basename $test_c .c).wasm"
|
||||
|
||||
if [ $test_wasm = "linear_memory_size_update.wasm" ]; then
|
||||
thread_start_file=""
|
||||
else
|
||||
thread_start_file=$WAMR_DIR/samples/wasi-threads/wasm-apps/wasi_thread_start.S
|
||||
fi
|
||||
|
||||
echo "Compiling $test_c to $test_wasm"
|
||||
$CC \
|
||||
-target wasm32-wasi-threads \
|
||||
@ -24,6 +30,6 @@ for test_c in *.c; do
|
||||
-Wl,--export=malloc \
|
||||
-Wl,--export=free \
|
||||
-I $WAMR_DIR/samples/wasi-threads/wasm-apps \
|
||||
$WAMR_DIR/samples/wasi-threads/wasm-apps/wasi_thread_start.S \
|
||||
$thread_start_file \
|
||||
$test_c -o $test_wasm
|
||||
done
|
||||
Reference in New Issue
Block a user