File tree Expand file tree Collapse file tree 4 files changed +20
-14
lines changed
test/sanitizer_suppressions Expand file tree Collapse file tree 4 files changed +20
-14
lines changed Original file line number Diff line number Diff line change 99
99
DOCKER_NAME_TAG=ubuntu:16.04
100
100
PACKAGES="clang llvm python3-zmq qtbase5-dev qttools5-dev-tools libssl-dev libevent-dev bsdmainutils libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-test-dev libboost-thread-dev libdb5.3++-dev libminiupnpc-dev libzmq3-dev libprotobuf-dev protobuf-compiler libqrencode-dev"
101
101
NO_DEPENDS=1
102
- RUN_FUNCTIONAL_TESTS=false # Disabled for now. TODO identify suppressions or exclude specific tests
102
+ FUNCTIONAL_TESTS_CONFIG="-- exclude feature_block.py,p2p_invalid_messages.py"
103
103
GOAL="install"
104
- BITCOIN_CONFIG="--enable-zmq --with-incompatible-bdb --with-gui=qt5 CPPFLAGS=-DDEBUG_LOCKORDER --with-sanitizers=thread --disable-hardening --disable-asm CC=clang CXX=clang++"
104
+ BITCOIN_CONFIG="--enable-zmq --disable-wallet --with-gui=qt5 CPPFLAGS=-DDEBUG_LOCKORDER --with-sanitizers=thread --disable-hardening --disable-asm CC=clang CXX=clang++"
105
105
# x86_64 Linux (no depends, only system libs, sanitizers: address/leak (ASan + LSan) + undefined (UBSan) + integer)
106
106
- stage : test
107
107
env : >-
Original file line number Diff line number Diff line change 7
7
export LC_ALL=C.UTF-8
8
8
9
9
travis_retry docker pull " $DOCKER_NAME_TAG "
10
+ mkdir -p " ${TRAVIS_BUILD_DIR} /sanitizer-output/"
10
11
export ASAN_OPTIONS=" "
11
12
export LSAN_OPTIONS=" suppressions=${TRAVIS_BUILD_DIR} /test/sanitizer_suppressions/lsan"
12
- export TSAN_OPTIONS=" suppressions=${TRAVIS_BUILD_DIR} /test/sanitizer_suppressions/tsan"
13
+ export TSAN_OPTIONS=" suppressions=${TRAVIS_BUILD_DIR} /test/sanitizer_suppressions/tsan:log_path= ${TRAVIS_BUILD_DIR} /sanitizer-output/tsan "
13
14
export UBSAN_OPTIONS=" suppressions=${TRAVIS_BUILD_DIR} /test/sanitizer_suppressions/ubsan:print_stacktrace=1:halt_on_error=1"
14
15
env | grep -E ' ^(BITCOIN_CONFIG|CCACHE_|WINEDEBUG|LC_ALL|BOOST_TEST_RANDOM|CONFIG_SHELL|(ASAN|LSAN|TSAN|UBSAN)_OPTIONS)' | tee /tmp/env
15
16
if [[ $HOST = * -mingw32 ]]; then
Original file line number Diff line number Diff line change @@ -41,12 +41,19 @@ DOCKER_EXEC ./configure --cache-file=../config.cache $BITCOIN_CONFIG_ALL $BITCOI
41
41
END_FOLD
42
42
43
43
BEGIN_FOLD build
44
- DOCKER_EXEC make $MAKEJOBS $GOAL || ( echo " Build failure. Verbose build follows." && DOCKER_EXEC make $GOAL V=1 ; false )
44
+ DOCKER_EXEC make $MAKEJOBS $GOAL || (
45
+ echo " Build failure. Verbose build follows." && DOCKER_EXEC make $GOAL V=1
46
+ DOCKER_EXEC " cat ${TRAVIS_BUILD_DIR} /sanitizer-output/* 2> /dev/null"
47
+ false
48
+ )
45
49
END_FOLD
46
50
47
51
if [ " $RUN_UNIT_TESTS " = " true" ]; then
48
52
BEGIN_FOLD unit-tests
49
- DOCKER_EXEC LD_LIBRARY_PATH=$TRAVIS_BUILD_DIR /depends/$HOST /lib make $MAKEJOBS check VERBOSE=1
53
+ DOCKER_EXEC LD_LIBRARY_PATH=$TRAVIS_BUILD_DIR /depends/$HOST /lib make $MAKEJOBS check VERBOSE=1 || (
54
+ DOCKER_EXEC " cat ${TRAVIS_BUILD_DIR} /sanitizer-output/* 2> /dev/null"
55
+ false
56
+ )
50
57
END_FOLD
51
58
fi
52
59
56
63
57
64
if [ " $RUN_FUNCTIONAL_TESTS " = " true" ]; then
58
65
BEGIN_FOLD functional-tests
59
- DOCKER_EXEC test/functional/test_runner.py --ci --combinedlogslen=4000 --coverage --quiet --failfast ${extended} ${FUNCTIONAL_TESTS_CONFIG}
66
+ DOCKER_EXEC test/functional/test_runner.py --ci --combinedlogslen=4000 --coverage --quiet --failfast ${extended} ${FUNCTIONAL_TESTS_CONFIG} || (
67
+ DOCKER_EXEC " cat ${TRAVIS_BUILD_DIR} /sanitizer-output/* 2> /dev/null"
68
+ false
69
+ )
60
70
END_FOLD
61
71
fi
Original file line number Diff line number Diff line change @@ -11,11 +11,6 @@ deadlock:TestPotentialDeadLockDetected
11
11
race:src/qt/test/*
12
12
deadlock:src/qt/test/*
13
13
14
- # WIP: Unidentified suppressions to run the functional tests
15
- #race:zmqpublishnotifier.cpp
16
- #
17
- #deadlock:CreateWalletFromFile
18
- #deadlock:importprivkey
19
- #deadlock:walletdb.h
20
- #deadlock:walletdb.cpp
21
- #deadlock:wallet/db.cpp
14
+ # External libraries
15
+ deadlock:libdb
16
+ race:libzmq
You can’t perform that action at this time.
0 commit comments