Add standalone cases (#3536)
This commit is contained in:
@ -14,7 +14,8 @@ function help()
|
||||
{
|
||||
echo "test_wamr.sh [options]"
|
||||
echo "-c clean previous test results, not start test"
|
||||
echo "-s {suite_name} test only one suite (spec|malformed|wasi_certification|wamr_compiler)"
|
||||
echo "-s {suite_name} test only one suite (spec|standalone|malformed|wasi_certification|"
|
||||
echo " unit|wamr_compiler)"
|
||||
echo "-m set compile target of iwasm(x86_64|x86_32|armv7|armv7_vfp|thumbv7|thumbv7_vfp|"
|
||||
echo " riscv32|riscv32_ilp32f|riscv32_ilp32d|riscv64|"
|
||||
echo " riscv64_lp64f|riscv64_lp64d|aarch64|aarch64_vfp)"
|
||||
@ -997,7 +998,8 @@ function trigger()
|
||||
# if we're running the wasi certification tests.
|
||||
if [[ $TEST_CASE_ARR ]]; then
|
||||
for test in "${TEST_CASE_ARR[@]}"; do
|
||||
if [[ "$test" == "wasi_certification" ]]; then
|
||||
if [[ "$test" == "wasi_certification"
|
||||
|| "$test" == "standalone" ]]; then
|
||||
EXTRA_COMPILE_FLAGS+=" -DWAMR_BUILD_LIBC_UVWASI=0 -DWAMR_BUILD_LIBC_WASI=1"
|
||||
break
|
||||
fi
|
||||
@ -1104,7 +1106,7 @@ if [[ $TEST_CASE_ARR ]];then
|
||||
trigger || (echo "TEST FAILED"; exit 1)
|
||||
else
|
||||
# test all suite, ignore polybench and libsodium because of long time cost
|
||||
TEST_CASE_ARR=("spec" "malformed")
|
||||
TEST_CASE_ARR=("spec" "malformed" "standalone")
|
||||
: '
|
||||
if [[ $COLLECT_CODE_COVERAGE == 1 ]];then
|
||||
# add polybench if collecting code coverage data
|
||||
|
||||
Reference in New Issue
Block a user