Changeset View
Changeset View
Standalone View
Standalone View
contrib/teamcity/ci-fixture.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 | ||||
: "${TOPLEVEL:=$(git rev-parse --show-toplevel)}" | : "${TOPLEVEL:=$(git rev-parse --show-toplevel)}" | ||||
: "${BUILD_DIR:=${TOPLEVEL}/build}" | |||||
DEVTOOLS_DIR="${TOPLEVEL}/contrib/devtools" | DEVTOOLS_DIR="${TOPLEVEL}/contrib/devtools" | ||||
# Base directories for sanitizer related files | # Base directories for sanitizer related files | ||||
SAN_SUPP_DIR="${TOPLEVEL}/test/sanitizer_suppressions" | SAN_SUPP_DIR="${TOPLEVEL}/test/sanitizer_suppressions" | ||||
SAN_LOG_DIR="/tmp/sanitizer_logs" | SAN_LOG_DIR="${BUILD_DIR}/sanitizer_logs" | ||||
# Create the log directory if it doesn't exist and clear it | # Create the log directory if it doesn't exist and clear it | ||||
mkdir -p "${SAN_LOG_DIR}" | mkdir -p "${SAN_LOG_DIR}" | ||||
rm -rf "${SAN_LOG_DIR:?}"/* | rm -rf "${SAN_LOG_DIR:?}"/* | ||||
# Needed options are set by the build system, add the log path to all runs | # Needed options are set by the build system, add the log path to all runs | ||||
export ASAN_OPTIONS="log_path=${SAN_LOG_DIR}/asan.log" | export ASAN_OPTIONS="log_path=${SAN_LOG_DIR}/asan.log" | ||||
export LSAN_OPTIONS="log_path=${SAN_LOG_DIR}/lsan.log" | export LSAN_OPTIONS="log_path=${SAN_LOG_DIR}/lsan.log" | ||||
▲ Show 20 Lines • Show All 51 Lines • Show Last 20 Lines |