Skip to content

Commit

Permalink
test.sh: add support for running on Apple Silicon (#2313)
Browse files Browse the repository at this point in the history
  • Loading branch information
darccio authored Oct 30, 2023
1 parent 3765293 commit 95faefd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 5 additions & 0 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 95faefd

Please sign in to comment.