Changeset View
Changeset View
Standalone View
Standalone View
contrib/teamcity/builds/build-ubsan.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 undefined sanitizer, then run unit tests and functional tests. | # Build with the undefined sanitizer, then run unit tests and functional tests. | ||||
CMAKE_FLAGS=( | CMAKE_FLAGS=( | ||||
"-DCMAKE_BUILD_TYPE=Debug" | "-DCMAKE_BUILD_TYPE=Debug" | ||||
"-DENABLE_SANITIZERS=undefined" | "-DENABLE_SANITIZERS=undefined" | ||||
) | ) | ||||
build_with_cmake --Werror --clang | build_with_cmake --Werror --clang --junit | ||||
run_test_bitcoin "with undefined sanitizer" | |||||
# Libs and utils tests | # Libs and utils tests | ||||
ninja check check-secp256k1 | ninja -k0 check check-secp256k1 check-functional | ||||
ninja check-functional |