From f87035d1464ce4f9e040e39b84127d9ec3eae20f Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Mon, 25 Mar 2019 19:24:24 +0300 Subject: [PATCH] Fix qt tests and actually run them (#2801) * Fix qt tests and run them when compiling with DDEBUG_LOCKORDER flag * Drop "NO_QT=1" --- ci/matrix.sh | 8 ++------ src/qt/test/rpcnestedtests.cpp | 2 ++ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/ci/matrix.sh b/ci/matrix.sh index 80285c3eb8..5afcbee0b5 100755 --- a/ci/matrix.sh +++ b/ci/matrix.sh @@ -33,13 +33,11 @@ export MAKEJOBS="-j4" if [ "$BUILD_TARGET" = "arm-linux" ]; then export HOST=arm-linux-gnueabihf export PACKAGES="g++-arm-linux-gnueabihf" - export DEP_OPTS="NO_QT=1" export CHECK_DOC=1 export BITCOIN_CONFIG="--enable-glibc-back-compat --enable-reduce-exports" elif [ "$BUILD_TARGET" = "win32" ]; then export HOST=i686-w64-mingw32 export DPKG_ADD_ARCH="i386" - export DEP_OPTS="NO_QT=1" export PACKAGES="python3 nsis g++-mingw-w64-i686 wine-stable wine32 bc" export BITCOIN_CONFIG="--enable-gui --enable-reduce-exports --disable-miner" export DIRECT_WINE_EXEC_TESTS=true @@ -47,7 +45,6 @@ elif [ "$BUILD_TARGET" = "win32" ]; then elif [ "$BUILD_TARGET" = "win64" ]; then export HOST=x86_64-w64-mingw32 export DPKG_ADD_ARCH="i386" - export DEP_OPTS="NO_QT=1" export PACKAGES="python3 nsis g++-mingw-w64-x86-64 wine-stable wine64 bc" export BITCOIN_CONFIG="--enable-gui --enable-reduce-exports --disable-miner" export DIRECT_WINE_EXEC_TESTS=true @@ -55,7 +52,6 @@ elif [ "$BUILD_TARGET" = "win64" ]; then elif [ "$BUILD_TARGET" = "linux32" ]; then export HOST=i686-pc-linux-gnu export PACKAGES="g++-multilib bc python3-zmq" - export DEP_OPTS="NO_QT=1" export BITCOIN_CONFIG="--enable-zmq --enable-glibc-back-compat --enable-reduce-exports --enable-stacktraces LDFLAGS=-static-libstdc++" export USE_SHELL="/bin/dash" export PYZMQ=true @@ -63,7 +59,7 @@ elif [ "$BUILD_TARGET" = "linux32" ]; then elif [ "$BUILD_TARGET" = "linux64" ]; then export HOST=x86_64-unknown-linux-gnu export PACKAGES="bc python3-zmq" - export DEP_OPTS="NO_QT=1 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-stacktraces" export CPPFLAGS="-DDEBUG_LOCKORDER -DENABLE_DASH_DEBUG" export PYZMQ=true @@ -76,7 +72,7 @@ elif [ "$BUILD_TARGET" = "linux64_nowallet" ]; then elif [ "$BUILD_TARGET" = "linux64_release" ]; then export HOST=x86_64-unknown-linux-gnu export PACKAGES="bc python3-zmq" - export DEP_OPTS="NO_QT=1 NO_UPNP=1" + export DEP_OPTS="NO_UPNP=1" export BITCOIN_CONFIG="--enable-zmq --enable-glibc-back-compat --enable-reduce-exports" export PYZMQ=true elif [ "$BUILD_TARGET" = "mac" ]; then diff --git a/src/qt/test/rpcnestedtests.cpp b/src/qt/test/rpcnestedtests.cpp index e15612d15d..d85da3d46c 100644 --- a/src/qt/test/rpcnestedtests.cpp +++ b/src/qt/test/rpcnestedtests.cpp @@ -54,6 +54,7 @@ void RPCNestedTests::rpcNestedTests() pblocktree = new CBlockTreeDB(1 << 20, true); pcoinsdbview = new CCoinsViewDB(1 << 23, true); deterministicMNManager = new CDeterministicMNManager(*evoDb); + llmq::InitLLMQSystem(*evoDb, nullptr, true); pcoinsTip = new CCoinsViewCache(pcoinsdbview); InitBlockIndex(chainparams); @@ -155,6 +156,7 @@ void RPCNestedTests::rpcNestedTests() #endif delete pcoinsTip; + llmq::DestroyLLMQSystem(); delete deterministicMNManager; delete pcoinsdbview; delete pblocktree;