From cce48a09436465191c760f1407df3ae9fb7d09cc Mon Sep 17 00:00:00 2001 From: Wenyong Huang Date: Wed, 14 Aug 2024 16:20:32 +0800 Subject: [PATCH] test_wamr.sh: Fix build wabt tool (#3703) And fix a typo in ATTRIBUTIONS.md. --- ATTRIBUTIONS.md | 2 +- tests/wamr-test-suites/test_wamr.sh | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/ATTRIBUTIONS.md b/ATTRIBUTIONS.md index b6e556d2..cba0e5c4 100644 --- a/ATTRIBUTIONS.md +++ b/ATTRIBUTIONS.md @@ -16,7 +16,7 @@ WAMR project reused some components from other open source project: - **asmjit**: for the Fast JIT x86-64 codegen implementation - **zydis**: for the Fast JIT x86-64 codegen implementation - **NuttX ELF headers**: used in core/iwasm/aot/debug/elf_parser.c -- **Dhrystone**: for the test benchmakr dhrystone +- **Dhrystone**: for the test benchmark dhrystone The WAMR fast interpreter is a clean room development. We would acknowledge the inspirations by [WASM3](https://github.com/wasm3/wasm3) open source project for the approach of pre-calculated operand stack location. diff --git a/tests/wamr-test-suites/test_wamr.sh b/tests/wamr-test-suites/test_wamr.sh index ee0dd7bb..54e2ac1a 100755 --- a/tests/wamr-test-suites/test_wamr.sh +++ b/tests/wamr-test-suites/test_wamr.sh @@ -409,12 +409,13 @@ function setup_wabt() git clone --recursive https://github.com/WebAssembly/wabt fi echo "upate wabt" - cd wabt - git fetch origin - git reset --hard origin/main - git checkout tags/${WABT_VERSION} -B ${WABT_VERSION} - cd .. - make -C wabt gcc-release -j 4 || exit 1 + cd wabt \ + && git fetch origin \ + && git reset --hard origin/main \ + && git checkout tags/${WABT_VERSION} -B ${WABT_VERSION} \ + && git submodule update --init \ + && cd .. \ + && make -C wabt gcc-release -j 4 || exit 1 fi }