diff options
author | Arnstein Ressem <aressem@vespa.ai> | 2024-04-05 12:47:05 +0200 |
---|---|---|
committer | Arnstein Ressem <aressem@vespa.ai> | 2024-04-05 12:47:05 +0200 |
commit | b388c5c478851057111072fa9caea2066a0d954f (patch) | |
tree | c038231fe0380981e83e35827dab2da403a81d80 | |
parent | 45ea0970ea435c11bd52c88aa085368d76a2f2b6 (diff) |
Allow test script to run on arm64.
-rwxr-xr-x | screwdriver/test-quick-start-guide.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/screwdriver/test-quick-start-guide.sh b/screwdriver/test-quick-start-guide.sh index 4c3feb35a21..577d6561b85 100755 --- a/screwdriver/test-quick-start-guide.sh +++ b/screwdriver/test-quick-start-guide.sh @@ -18,8 +18,13 @@ echo -e "urls:\n - en/vespa-quick-start.html" > test/_quick-start.yaml # Get the required vespa CLI VESPA_CLI_VERSION=$(curl -fsSL https://api.github.com/repos/vespa-engine/vespa/releases/latest | grep -Po '"tag_name": "v\K.*?(?=")') -curl -fsSL https://github.com/vespa-engine/vespa/releases/download/v${VESPA_CLI_VERSION}/vespa-cli_${VESPA_CLI_VERSION}_linux_amd64.tar.gz | tar -zxf - -C /opt -ln -sf /opt/vespa-cli_${VESPA_CLI_VERSION}_linux_amd64/bin/vespa /usr/local/bin/ +if [[ $(arch) == x86_64 ]]; then + GO_ARCH=amd64 +else + GO_ARCH=arm64 +fi +curl -fsSL https://github.com/vespa-engine/vespa/releases/download/v${VESPA_CLI_VERSION}/vespa-cli_${VESPA_CLI_VERSION}_linux_${GO_ARCH}.tar.gz | tar -zxf - -C /opt +ln -sf /opt/vespa-cli_${VESPA_CLI_VERSION}_linux_${GO_ARCH}/bin/vespa /usr/local/bin/ # Run test python3 test/test.py -v -c test/_quick-start.yaml |