Changeset View
Changeset View
Standalone View
Standalone View
contrib/teamcity/build-configurations.sh
Show All 34 Lines | setup() { | ||||
mkdir -p "${SAN_LOG_DIR}" | mkdir -p "${SAN_LOG_DIR}" | ||||
rm -rf "${SAN_LOG_DIR:?}"/* | rm -rf "${SAN_LOG_DIR:?}"/* | ||||
# Sanitizers options, not used if sanitizers are not enabled | # Sanitizers options, not used if sanitizers are not enabled | ||||
export ASAN_OPTIONS="malloc_context_size=0:log_path=${SAN_LOG_DIR}/asan.log" | export ASAN_OPTIONS="malloc_context_size=0:log_path=${SAN_LOG_DIR}/asan.log" | ||||
export LSAN_OPTIONS="suppressions=${SAN_SUPP_DIR}/lsan:log_path=${SAN_LOG_DIR}/lsan.log" | export LSAN_OPTIONS="suppressions=${SAN_SUPP_DIR}/lsan:log_path=${SAN_LOG_DIR}/lsan.log" | ||||
export TSAN_OPTIONS="suppressions=${SAN_SUPP_DIR}/tsan:log_path=${SAN_LOG_DIR}/tsan.log" | export TSAN_OPTIONS="suppressions=${SAN_SUPP_DIR}/tsan:log_path=${SAN_LOG_DIR}/tsan.log" | ||||
export UBSAN_OPTIONS="suppressions=${SAN_SUPP_DIR}/ubsan:print_stacktrace=1:halt_on_error=1:log_path=${SAN_LOG_DIR}/ubsan.log" | export UBSAN_OPTIONS="suppressions=${SAN_SUPP_DIR}/ubsan:print_stacktrace=1:halt_on_error=1:log_path=${SAN_LOG_DIR}/ubsan.log" | ||||
# Unit test logger parameters | |||||
UNIT_TESTS_JUNIT_LOG_LEVEL=message | |||||
} | } | ||||
# Facility to print out sanitizer log outputs to the build log console | # Facility to print out sanitizer log outputs to the build log console | ||||
print_sanitizers_log() { | print_sanitizers_log() { | ||||
for log in "${SAN_LOG_DIR}"/*.log.* | for log in "${SAN_LOG_DIR}"/*.log.* | ||||
do | do | ||||
echo "*** Output of ${log} ***" | echo "*** Output of ${log} ***" | ||||
cat "${log}" | cat "${log}" | ||||
▲ Show 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | case "$ABC_BUILD_NAME" in | ||||
build-diff) | build-diff) | ||||
# Build, run unit tests and functional tests. | # Build, run unit tests and functional tests. | ||||
CMAKE_FLAGS=( | CMAKE_FLAGS=( | ||||
"-DSECP256K1_ENABLE_MODULE_ECDH=ON" | "-DSECP256K1_ENABLE_MODULE_ECDH=ON" | ||||
"-DSECP256K1_ENABLE_JNI=ON" | "-DSECP256K1_ENABLE_JNI=ON" | ||||
) | ) | ||||
CMAKE_FLAGS="${CMAKE_FLAGS[*]}" "${CI_SCRIPTS_DIR}"/build_cmake.sh | CMAKE_FLAGS="${CMAKE_FLAGS[*]}" "${CI_SCRIPTS_DIR}"/build_cmake.sh | ||||
# FIXME: Path collisions in src/test/util_tests.cpp cause issues when | |||||
# upgraded tests are run in parallel with their non-upgraded counterpart. | # # Unit tests | ||||
# Change this back to a one-liner when the root cause is fixed. | # ninja test_bitcoin | ||||
# ./src/test/test_bitcoin --logger=HRF:JUNIT,${UNIT_TESTS_JUNIT_LOG_LEVEL},junit_results_unit_tests.xml | |||||
# ./src/test/test_bitcoin --logger=HRF:JUNIT,${UNIT_TESTS_JUNIT_LOG_LEVEL},junit_results_unit_tests_upgrade_activated.xml -- -phononactivationtime=1575158400 | |||||
# | |||||
# # Libs and tools tests | |||||
# ninja check-devtools check-bitcoin-qt check-leveldb check-univalue check-secp256k1 check-bitcoin-seeder check-bitcoin-util check-rpcauth | |||||
# | |||||
# # Functional tests | |||||
# ninja check-functional | |||||
# ninja check-functional-upgrade-activated | |||||
export BOOST_TEST_LOGGER=HRF:JUNIT,${UNIT_TESTS_JUNIT_LOG_LEVEL} | |||||
ninja check-all | ninja check-all | ||||
ninja check-upgrade-activated | ninja check-upgrade-activated | ||||
;; | ;; | ||||
build-master) | build-master) | ||||
# Build, run unit tests and extended functional tests. | # Build, run unit tests and extended functional tests. | ||||
CMAKE_FLAGS=( | CMAKE_FLAGS=( | ||||
"-DSECP256K1_ENABLE_MODULE_ECDH=ON" | "-DSECP256K1_ENABLE_MODULE_ECDH=ON" | ||||
"-DSECP256K1_ENABLE_JNI=ON" | "-DSECP256K1_ENABLE_JNI=ON" | ||||
) | ) | ||||
CMAKE_FLAGS="${CMAKE_FLAGS[*]}" "${CI_SCRIPTS_DIR}"/build_cmake.sh | CMAKE_FLAGS="${CMAKE_FLAGS[*]}" "${CI_SCRIPTS_DIR}"/build_cmake.sh | ||||
# FIXME: Path collisions in src/test/util_tests.cpp cause issues when | |||||
# upgraded tests are run in parallel with their non-upgraded counterpart. | # Unit tests | ||||
# Change this back to a one-liner when the root cause is fixed. | ninja test_bitcoin | ||||
ninja check-extended | ./src/test/test_bitcoin --logger=HRF:JUNIT,${UNIT_TESTS_JUNIT_LOG_LEVEL},junit_results_unit_tests.xml | ||||
ninja check-upgrade-activated-extended | ./src/test/test_bitcoin --logger=HRF:JUNIT,${UNIT_TESTS_JUNIT_LOG_LEVEL},junit_results_unit_tests_upgrade_activated.xml -- -phononactivationtime=1575158400 | ||||
# Libs and tools tests | |||||
ninja check-devtools check-bitcoin-qt check-leveldb check-univalue check-secp256k1 check-bitcoin-seeder check-bitcoin-util check-rpcauth | |||||
# Functional tests | |||||
ninja check-functional-extended | |||||
ninja check-functional-upgrade-activated-extended | |||||
;; | ;; | ||||
build-without-wallet) | build-without-wallet) | ||||
# Build without wallet and run the unit tests. | # Build without wallet and run the unit tests. | ||||
CMAKE_FLAGS=( | CMAKE_FLAGS=( | ||||
"-DBUILD_BITCOIN_WALLET=OFF" | "-DBUILD_BITCOIN_WALLET=OFF" | ||||
) | ) | ||||
CMAKE_FLAGS="${CMAKE_FLAGS[*]}" "${CI_SCRIPTS_DIR}"/build_cmake.sh | CMAKE_FLAGS="${CMAKE_FLAGS[*]}" "${CI_SCRIPTS_DIR}"/build_cmake.sh | ||||
▲ Show 20 Lines • Show All 57 Lines • Show Last 20 Lines |