mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 20:12:57 +01:00
Merge #14036: travis: Run unit tests --with-sanitizers=undefined
fad8afa3883675880dfa7fa6664fe658f10b11b5 travis: Run unit tests --with-sanitizers=undefined (MarcoFalke) 0d00fd5901102d9ca2b99d6f17a3bd96c946e3b7 depends: allow CC/CXX to be overridden during configure (Cory Fields) Pull request description: See issue #12691 Tree-SHA512: 0772e8e037411cb4664270945a0fc9c0c1ed24eeaf5308460baee707868f7b700d8e740a6babb1d02bc818a8a4b71d9e33601ab2cc850ff315755fcf3d79d29e # Conflicts: # .travis.yml
This commit is contained in:
parent
eae3b9abc4
commit
7327a0b2ec
24
ci/matrix.sh
24
ci/matrix.sh
@ -29,10 +29,11 @@ export DOCKER_RUN_IN_BUILDER="docker run -t --rm -w $SRC_DIR $DOCKER_RUN_ARGS $B
|
|||||||
# Default values for targets
|
# Default values for targets
|
||||||
export GOAL="install"
|
export GOAL="install"
|
||||||
export SDK_URL=${SDK_URL:-https://bitcoincore.org/depends-sources/sdks}
|
export SDK_URL=${SDK_URL:-https://bitcoincore.org/depends-sources/sdks}
|
||||||
export MAKEJOBS="-j4"
|
MAKEJOBS="-j$(nproc)"
|
||||||
|
export MAKEJOBS
|
||||||
|
|
||||||
export RUN_UNITTESTS=false
|
export RUN_UNITTESTS=true
|
||||||
export RUN_INTEGRATIONTESTS=false
|
export RUN_INTEGRATIONTESTS=true
|
||||||
|
|
||||||
if [ "$BUILD_TARGET" = "arm-linux" ]; then
|
if [ "$BUILD_TARGET" = "arm-linux" ]; then
|
||||||
export HOST=arm-linux-gnueabihf
|
export HOST=arm-linux-gnueabihf
|
||||||
@ -40,55 +41,50 @@ if [ "$BUILD_TARGET" = "arm-linux" ]; then
|
|||||||
# -Wno-psabi is to disable ABI warnings: "note: parameter passing for argument of type ... changed in GCC 7.1"
|
# -Wno-psabi is to disable ABI warnings: "note: parameter passing for argument of type ... changed in GCC 7.1"
|
||||||
# This could be removed once the ABI change warning does not show up by default
|
# This could be removed once the ABI change warning does not show up by default
|
||||||
export BITCOIN_CONFIG="--enable-glibc-back-compat --enable-reduce-exports CXXFLAGS=-Wno-psabi"
|
export BITCOIN_CONFIG="--enable-glibc-back-compat --enable-reduce-exports CXXFLAGS=-Wno-psabi"
|
||||||
|
export RUN_UNITTESTS=false
|
||||||
|
export RUN_INTEGRATIONTESTS=false
|
||||||
elif [ "$BUILD_TARGET" = "win32" ]; then
|
elif [ "$BUILD_TARGET" = "win32" ]; then
|
||||||
export HOST=i686-w64-mingw32
|
export HOST=i686-w64-mingw32
|
||||||
export DPKG_ADD_ARCH="i386"
|
export DPKG_ADD_ARCH="i386"
|
||||||
export BITCOIN_CONFIG="--enable-gui --enable-reduce-exports --disable-miner"
|
export BITCOIN_CONFIG="--enable-gui --enable-reduce-exports --disable-miner"
|
||||||
export DIRECT_WINE_EXEC_TESTS=true
|
export DIRECT_WINE_EXEC_TESTS=true
|
||||||
export RUN_UNITTESTS=true
|
|
||||||
elif [ "$BUILD_TARGET" = "win64" ]; then
|
elif [ "$BUILD_TARGET" = "win64" ]; then
|
||||||
export HOST=x86_64-w64-mingw32
|
export HOST=x86_64-w64-mingw32
|
||||||
export DPKG_ADD_ARCH="i386"
|
export DPKG_ADD_ARCH="i386"
|
||||||
export BITCOIN_CONFIG="--enable-gui --enable-reduce-exports --disable-miner"
|
export BITCOIN_CONFIG="--enable-gui --enable-reduce-exports --disable-miner"
|
||||||
export DIRECT_WINE_EXEC_TESTS=true
|
export DIRECT_WINE_EXEC_TESTS=true
|
||||||
export RUN_UNITTESTS=true
|
|
||||||
elif [ "$BUILD_TARGET" = "linux32" ]; then
|
elif [ "$BUILD_TARGET" = "linux32" ]; then
|
||||||
export HOST=i686-pc-linux-gnu
|
export HOST=i686-pc-linux-gnu
|
||||||
export BITCOIN_CONFIG="--enable-zmq --enable-glibc-back-compat --enable-reduce-exports --enable-crash-hooks LDFLAGS=-static-libstdc++"
|
export BITCOIN_CONFIG="--enable-zmq --enable-glibc-back-compat --enable-reduce-exports --enable-crash-hooks LDFLAGS=-static-libstdc++"
|
||||||
export USE_SHELL="/bin/dash"
|
export USE_SHELL="/bin/dash"
|
||||||
export PYZMQ=true
|
export PYZMQ=true
|
||||||
export RUN_UNITTESTS=true
|
|
||||||
export RUN_INTEGRATIONTESTS=true
|
|
||||||
elif [ "$BUILD_TARGET" = "linux64" ]; then
|
elif [ "$BUILD_TARGET" = "linux64" ]; then
|
||||||
export HOST=x86_64-unknown-linux-gnu
|
export HOST=x86_64-unknown-linux-gnu
|
||||||
export DEP_OPTS="NO_UPNP=1 DEBUG=1"
|
export DEP_OPTS="NO_UPNP=1 DEBUG=1"
|
||||||
export BITCOIN_CONFIG="--enable-zmq --enable-glibc-back-compat --enable-reduce-exports --enable-crash-hooks"
|
export BITCOIN_CONFIG="--enable-zmq --enable-glibc-back-compat --enable-reduce-exports --enable-crash-hooks"
|
||||||
export CPPFLAGS="-DDEBUG_LOCKORDER -DENABLE_DASH_DEBUG -DARENA_DEBUG"
|
export CPPFLAGS="-DDEBUG_LOCKORDER -DENABLE_DASH_DEBUG -DARENA_DEBUG"
|
||||||
export PYZMQ=true
|
export PYZMQ=true
|
||||||
export RUN_UNITTESTS=true
|
|
||||||
export RUN_INTEGRATIONTESTS=true
|
|
||||||
elif [ "$BUILD_TARGET" = "linux64_cxx17" ]; then
|
elif [ "$BUILD_TARGET" = "linux64_cxx17" ]; then
|
||||||
export HOST=x86_64-unknown-linux-gnu
|
export HOST=x86_64-unknown-linux-gnu
|
||||||
export DEP_OPTS="NO_UPNP=1 DEBUG=1"
|
export DEP_OPTS="NO_UPNP=1 DEBUG=1"
|
||||||
export BITCOIN_CONFIG="--enable-zmq --enable-glibc-back-compat --enable-reduce-exports --enable-crash-hooks --enable-c++17"
|
export BITCOIN_CONFIG="--enable-zmq --enable-glibc-back-compat --enable-reduce-exports --enable-crash-hooks --enable-c++17 --with-sanitizers=undefined"
|
||||||
export CPPFLAGS="-DDEBUG_LOCKORDER -DENABLE_DASH_DEBUG -DARENA_DEBUG"
|
export CPPFLAGS="-DDEBUG_LOCKORDER -DENABLE_DASH_DEBUG -DARENA_DEBUG"
|
||||||
export PYZMQ=true
|
export PYZMQ=true
|
||||||
export RUN_UNITTESTS=true
|
export RUN_INTEGRATIONTESTS=false
|
||||||
export RUN_INTEGRATIONTESTS=true
|
|
||||||
elif [ "$BUILD_TARGET" = "linux64_nowallet" ]; then
|
elif [ "$BUILD_TARGET" = "linux64_nowallet" ]; then
|
||||||
export HOST=x86_64-unknown-linux-gnu
|
export HOST=x86_64-unknown-linux-gnu
|
||||||
export DEP_OPTS="NO_WALLET=1"
|
export DEP_OPTS="NO_WALLET=1"
|
||||||
export BITCOIN_CONFIG="--enable-glibc-back-compat --enable-reduce-exports"
|
export BITCOIN_CONFIG="--enable-glibc-back-compat --enable-reduce-exports"
|
||||||
export RUN_UNITTESTS=true
|
|
||||||
elif [ "$BUILD_TARGET" = "linux64_release" ]; then
|
elif [ "$BUILD_TARGET" = "linux64_release" ]; then
|
||||||
export HOST=x86_64-unknown-linux-gnu
|
export HOST=x86_64-unknown-linux-gnu
|
||||||
export DEP_OPTS="NO_UPNP=1"
|
export DEP_OPTS="NO_UPNP=1"
|
||||||
export BITCOIN_CONFIG="--enable-zmq --enable-glibc-back-compat --enable-reduce-exports"
|
export BITCOIN_CONFIG="--enable-zmq --enable-glibc-back-compat --enable-reduce-exports"
|
||||||
export PYZMQ=true
|
export PYZMQ=true
|
||||||
export RUN_UNITTESTS=true
|
|
||||||
elif [ "$BUILD_TARGET" = "mac" ]; then
|
elif [ "$BUILD_TARGET" = "mac" ]; then
|
||||||
export HOST=x86_64-apple-darwin14
|
export HOST=x86_64-apple-darwin14
|
||||||
export BITCOIN_CONFIG="--enable-gui --enable-reduce-exports --disable-miner"
|
export BITCOIN_CONFIG="--enable-gui --enable-reduce-exports --disable-miner"
|
||||||
export OSX_SDK=10.11
|
export OSX_SDK=10.11
|
||||||
export GOAL="all deploy"
|
export GOAL="all deploy"
|
||||||
|
export RUN_UNITTESTS=false
|
||||||
|
export RUN_INTEGRATIONTESTS=false
|
||||||
fi
|
fi
|
||||||
|
@ -55,9 +55,12 @@ export PKG_CONFIG_PATH=$depends_prefix/share/pkgconfig
|
|||||||
CPPFLAGS="-I$depends_prefix/include/ $CPPFLAGS"
|
CPPFLAGS="-I$depends_prefix/include/ $CPPFLAGS"
|
||||||
LDFLAGS="-L$depends_prefix/lib $LDFLAGS"
|
LDFLAGS="-L$depends_prefix/lib $LDFLAGS"
|
||||||
|
|
||||||
CC="@CC@"
|
if test -n "@CC@" -a -z "${CC}"; then
|
||||||
CXX="@CXX@"
|
CC="@CC@"
|
||||||
OBJC="${CC}"
|
fi
|
||||||
|
if test -n "@CXX@" -a -z "${CXX}"; then
|
||||||
|
CXX="@CXX@"
|
||||||
|
fi
|
||||||
PYTHONPATH=$depends_prefix/native/lib/python/dist-packages:$PYTHONPATH
|
PYTHONPATH=$depends_prefix/native/lib/python/dist-packages:$PYTHONPATH
|
||||||
|
|
||||||
if test -n "@AR@"; then
|
if test -n "@AR@"; then
|
||||||
|
Loading…
Reference in New Issue
Block a user