Files
influx-cli/scripts/ci/run-race-tests.sh
Daniel Moran d92bede8d3 fix: embed tzdata into Windows builds (#305)
Migrate cross-test jobs to use cross-builder so Windows tests run on a system without Go, as a regression test
2021-10-14 08:49:26 -07:00

21 lines
431 B
Bash
Executable File

#!/usr/bin/env bash
set -exo pipefail
function main () {
if [[ $# != 1 ]]; then
>&2 echo Usage: $0 '<output-dir>'
exit 1
fi
if [[ $(go env GOOS) != linux || $(go env GOARCH) != amd64 ]]; then
>&2 echo Race tests only supported on linux/amd64
exit 1
fi
local -r out_dir="$1"
mkdir -p "$out_dir"
gotestsum --junitfile "${out_dir}/report.xml" -- -race ./...
}
main ${@}