test_wamr.sh: Allow using test script on different platforms (#3098)

The `^^` for uppercase is not widely supported, e.g. not working on some MacOS M1.
This commit is contained in:
Enrico Loparco 2024-01-30 04:02:40 +01:00 committed by GitHub
parent 7f8e2133ec
commit 170ae35131
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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"