From 170ae3513135d9f54c54a811c5f2b470382966c6 Mon Sep 17 00:00:00 2001 From: Enrico Loparco Date: Tue, 30 Jan 2024 04:02:40 +0100 Subject: [PATCH] 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. --- tests/wamr-test-suites/test_wamr.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/wamr-test-suites/test_wamr.sh b/tests/wamr-test-suites/test_wamr.sh index 76b235d4..66340323 100755 --- a/tests/wamr-test-suites/test_wamr.sh +++ b/tests/wamr-test-suites/test_wamr.sh @@ -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"