github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/build/teamcity-test-deadlock.sh (about) 1 #!/usr/bin/env bash 2 3 set -euo pipefail 4 5 source "$(dirname "${0}")/teamcity-support.sh" 6 7 tc_prepare 8 definitely_ccache 9 10 export TMPDIR=$PWD/artifacts 11 mkdir -p "$TMPDIR" 12 13 tc_start_block "Compile C dependencies" 14 run build/builder.sh make -Otarget c-deps 15 tc_end_block "Compile C dependencies" 16 17 tc_start_block "Run Go tests with deadlock detection enabled" 18 run_json_test build/builder.sh \ 19 stdbuf -oL -eL \ 20 make test GOTESTFLAGS=-json TAGS=deadlock TESTFLAGS='-v' 21 tc_end_block "Run Go tests with deadlock detection enabled"