Skip to content

Commit 8e9ea6e

Browse files
committed
fix: improve test case handling in test_wamr.sh
1 parent 951684c commit 8e9ea6e

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

tests/wamr-test-suites/test_wamr.sh

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1187,17 +1187,17 @@ function trigger()
11871187
done
11881188
}
11891189

1190-
# if collect code coverage, ignore -s, test all test cases.
1191-
if [[ $TEST_CASE_ARR == "unit" ]];then
1192-
# unit test cases are designed with specific compilation flags
1193-
# and run under specific modes.
1194-
# There is no need to loop through all running modes in this script.
1195-
unit_test || (echo "TEST FAILED"; exit 1)
1196-
collect_coverage unit
1197-
echo "JUST SKIP UNIT TEST NOW"
1198-
elif [[ $TEST_CASE_ARR == "spec" ]];then
1190+
if [[ $TEST_CASE_ARR ]];then
1191+
if [[ $TEST_CASE_ARR == "unit" ]];then
1192+
# unit test cases are designed with specific compilation flags
1193+
# and run under specific modes.
1194+
# There is no need to loop through all running modes in this script.
1195+
unit_test || (echo "TEST FAILED"; exit 1)
1196+
collect_coverage unit
1197+
else
11991198
# loop through all running modes
12001199
trigger || (echo "TEST FAILED"; exit 1)
1200+
fi
12011201
else
12021202
# test all suite, ignore polybench and libsodium because of long time cost
12031203
TEST_CASE_ARR=("spec" "malformed" "standalone")

0 commit comments

Comments
 (0)