Skip to content

Commit

Permalink
test_wamr.sh: Allow using test script on different platforms (bytecod…
Browse files Browse the repository at this point in the history
…ealliance#3098)

The `^^` for uppercase is not widely supported, e.g. not working on some MacOS M1.
  • Loading branch information
eloparco authored Jan 30, 2024
1 parent 7f8e213 commit 170ae35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/wamr-test-suites/test_wamr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ do
;;
m)
echo "set compile target of wamr" ${OPTARG}
TARGET=${OPTARG^^} # set target to uppercase if input x86_32 or x86_64 --> X86_32 and X86_64
TARGET=$(echo "$OPTARG" | tr '[a-z]' '[A-Z]') # set target to uppercase if input x86_32 or x86_64 --> X86_32 and X86_64
;;
w)
echo "enable WASI threads"
Expand Down

0 comments on commit 170ae35

Please sign in to comment.