From 95faefd10fb3516cb7e5b645ce01fc7e5075da37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dario=20Casta=C3=B1=C3=A9?= Date: Mon, 30 Oct 2023 15:50:44 +0100 Subject: [PATCH] test.sh: add support for running on Apple Silicon (#2313) --- .gitignore | 3 +++ test.sh | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/.gitignore b/.gitignore index e6b355b69f..66bca130e5 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,6 @@ dd-trace-go.iml vendor /contrib/google.golang.org/grpc.v12/vendor/ +/contrib_coverage.txt +/core_coverage.txt +/gotestsum-report.xml diff --git a/test.sh b/test.sh index 82e46bb5c2..35f92ed514 100755 --- a/test.sh +++ b/test.sh @@ -11,6 +11,11 @@ if [[ $# -eq 0 ]]; then echo "Use the -h flag for help" fi +if [[ "$(uname -s)" = 'Darwin' && "$(uname -m)" = 'arm64' ]]; then + # Needed to run integration tests on Apple Silicon + export DOCKER_DEFAULT_PLATFORM=linux/amd64 +fi + while [[ $# -gt 0 ]]; do case $1 in -a|--appsec)