Changeset View
Changeset View
Standalone View
Standalone View
contrib/teamcity/builds/build-tsan.sh
#!/usr/bin/env bash | #!/usr/bin/env bash | ||||
export LC_ALL=C.UTF-8 | export LC_ALL=C.UTF-8 | ||||
set -euxo pipefail | set -euxo pipefail | ||||
# shellcheck source=../ci-fixture.sh | # shellcheck source=../ci-fixture.sh | ||||
source "${TOPLEVEL}/contrib/teamcity/ci-fixture.sh" | source "${TOPLEVEL}/contrib/teamcity/ci-fixture.sh" | ||||
# Build with the thread sanitizer, then run unit tests and functional tests. | # Build with the thread sanitizer, then run unit tests and functional tests. | ||||
CMAKE_FLAGS=( | CMAKE_FLAGS=( | ||||
"-DENABLE_SANITIZERS=thread" | "-DENABLE_SANITIZERS=thread" | ||||
) | ) | ||||
build_with_cmake --Werror --clang | build_with_cmake --Werror --clang --junit | ||||
run_test_bitcoin "with thread sanitizer" | |||||
# Libs and utils tests | # Libs and utils tests | ||||
ninja check | ninja -k0 check check-functional | ||||
ninja check-functional |