0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-03 09:56:38 -05:00

Merge #17384: test: Create new test library

fa4c6fa9b1 doc: Add documentation for new test/lib (MarcoFalke)
faec28252c scripted-diff: test: Move setup_common to test library (MarcoFalke)

Pull request description:

  Sorry for clickbait, this is only a move-only scripted-diff commit and one documentation commit.

  Longer term, someone who knows something about build systems can make this an actual library. Motivation for this is that each module gets compiled for each target that includes it. For example, setup_common is compiled 27 times (for the fuzz suite) and another 3 times for the other tests (bench, unit test, gui)

ACKs for top commit:
  practicalswift:
    ACK fa4c6fa9b1 -- diff looks correct and Travis is happy
  jonatack:
    ACK fa4c6fa9b1 with the reserve that the commit messages (and PR description) contain the motivation for this change. Built, ran tests, light code review.
  ryanofsky:
    Code review ACK fa4c6fa9b1. I didn't realize `lib` was actually name of existing directory, not a new name. But in any case this looks good and nice to have one scripted diff instead of two.

Tree-SHA512: 2e176df90c60578276e4a6dc83ff57ff59d8e666ecf30c5ceacb8c326725da91baa4cac3dfa7a2e1605f58122a3e3e27e4938ff33e3a0ce7ea53afffebbf57a4
This commit is contained in:
MarcoFalke 2019-11-07 08:01:59 -05:00
commit 46fc4d1a24
No known key found for this signature in database
GPG key ID: D2EA4850E7528B25
103 changed files with 139 additions and 128 deletions

View file

@ -10,7 +10,7 @@
<OutDir>$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
</PropertyGroup>
<ItemGroup>
<ClCompile Include="..\..\src\test\setup_common.cpp" />
<ClCompile Include="..\..\src\test\util\setup_common.cpp" />
<ClCompile Include="..\..\src\qt\test\addressbooktests.cpp" />
<ClCompile Include="..\..\src\qt\test\apptests.cpp" />
<ClCompile Include="..\..\src\qt\test\compattests.cpp" />

View file

@ -13,8 +13,8 @@
<ClCompile Include="..\..\src\test\*_properties.cpp" />
<ClCompile Include="..\..\src\test\gen\*_gen.cpp" />
<ClCompile Include="..\..\src\wallet\test\*_tests.cpp" />
<ClCompile Include="..\..\src\test\lib\*.cpp" />
<ClCompile Include="..\..\src\test\setup_common.cpp" />
<ClCompile Include="..\..\src\test\util\*.cpp" />
<ClCompile Include="..\..\src\test\util\setup_common.cpp" />
<ClCompile Include="..\..\src\test\main.cpp" />
<ClCompile Include="..\..\src\wallet\test\*_fixture.cpp" />
</ItemGroup>

View file

@ -40,10 +40,10 @@ bench_bench_bitcoin_SOURCES = \
bench/lockedpool.cpp \
bench/poly1305.cpp \
bench/prevector.cpp \
test/lib/transaction_utils.h \
test/lib/transaction_utils.cpp \
test/setup_common.h \
test/setup_common.cpp \
test/util/transaction_utils.h \
test/util/transaction_utils.cpp \
test/util/setup_common.h \
test/util/setup_common.cpp \
test/util.h \
test/util.cpp

View file

@ -27,10 +27,10 @@ TEST_QT_H = \
qt/test/wallettests.h
TEST_BITCOIN_CPP = \
test/setup_common.cpp
test/util/setup_common.cpp
TEST_BITCOIN_H = \
test/setup_common.h
test/util/setup_common.h
qt_test_test_bitcoin_qt_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES) $(BITCOIN_QT_INCLUDES) \
$(QT_INCLUDES) $(QT_TEST_INCLUDES)

View file

@ -57,15 +57,15 @@ RAW_TEST_FILES =
GENERATED_TEST_FILES = $(JSON_TEST_FILES:.json=.json.h) $(RAW_TEST_FILES:.raw=.raw.h)
BITCOIN_TEST_SUITE = \
test/lib/blockfilter.cpp \
test/lib/blockfilter.h \
test/lib/logging.cpp \
test/lib/logging.h \
test/lib/transaction_utils.cpp \
test/lib/transaction_utils.h \
test/util/blockfilter.cpp \
test/util/blockfilter.h \
test/util/logging.cpp \
test/util/logging.h \
test/util/transaction_utils.cpp \
test/util/transaction_utils.h \
test/main.cpp \
test/setup_common.h \
test/setup_common.cpp \
test/util/setup_common.h \
test/util/setup_common.cpp \
test/util/str.h \
test/util/str.cpp
@ -73,8 +73,8 @@ FUZZ_SUITE = \
test/fuzz/fuzz.cpp \
test/fuzz/fuzz.h \
test/fuzz/FuzzedDataProvider.h \
test/setup_common.cpp \
test/setup_common.h \
test/util/setup_common.cpp \
test/util/setup_common.h \
test/util/str.cpp \
test/util/str.h

View file

@ -5,7 +5,7 @@
#include <bench/bench.h>
#include <chainparams.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <validation.h>
#include <algorithm>

View file

@ -10,7 +10,7 @@
#include <script/script.h>
#include <script/standard.h>
#include <streams.h>
#include <test/lib/transaction_utils.h>
#include <test/util/transaction_utils.h>
#include <array>

View file

@ -1,6 +1,6 @@
#include <qt/test/addressbooktests.h>
#include <qt/test/util.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <interfaces/chain.h>
#include <interfaces/node.h>

View file

@ -11,7 +11,7 @@
#include <qt/networkstyle.h>
#include <qt/rpcconsole.h>
#include <shutdown.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <univalue.h>
#include <validation.h>

View file

@ -7,7 +7,7 @@
#include <interfaces/node.h>
#include <rpc/server.h>
#include <qt/rpcconsole.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <univalue.h>
#include <util/system.h>

View file

@ -12,7 +12,7 @@
#include <qt/test/rpcnestedtests.h>
#include <qt/test/uritests.h>
#include <qt/test/compattests.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#ifdef ENABLE_WALLET
#include <qt/test/addressbooktests.h>

View file

@ -13,7 +13,7 @@
#include <qt/transactionview.h>
#include <qt/walletmodel.h>
#include <key_io.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <validation.h>
#include <wallet/wallet.h>
#include <qt/overviewpage.h>

View file

@ -7,8 +7,8 @@ configure some other framework (we want as few impediments to creating
unit tests as possible).
The build system is set up to compile an executable called `test_bitcoin`
that runs all of the unit tests. The main source file is called
`setup_common.cpp`.
that runs all of the unit tests. The main source file for the test library is found in
`util/setup_common.cpp`.
### Compiling/running unit tests

View file

@ -2,7 +2,7 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <addrman.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <string>
#include <boost/test/unit_test.hpp>

View file

@ -5,7 +5,7 @@
#include <util/memory.h>
#include <util/system.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <memory>

View file

@ -4,7 +4,7 @@
#include <amount.h>
#include <policy/feerate.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <boost/test/unit_test.hpp>

View file

@ -11,7 +11,7 @@
#include <uint256.h>
#include <arith_uint256.h>
#include <string>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
BOOST_FIXTURE_TEST_SUITE(arith_uint256_tests, BasicTestingSetup)

View file

@ -3,7 +3,7 @@
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <util/strencodings.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <boost/test/unit_test.hpp>

View file

@ -5,7 +5,7 @@
#include <test/data/base58_encode_decode.json.h>
#include <base58.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <util/strencodings.h>
#include <univalue.h>

View file

@ -3,7 +3,7 @@
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <util/strencodings.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <boost/test/unit_test.hpp>

View file

@ -3,7 +3,7 @@
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <bech32.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <test/util/str.h>
#include <boost/test/unit_test.hpp>

View file

@ -9,7 +9,7 @@
#include <key_io.h>
#include <streams.h>
#include <util/strencodings.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <string>
#include <vector>

View file

@ -4,7 +4,7 @@
#include <chain.h>
#include <rpc/blockchain.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
/* Equality between doubles is imprecise. Comparison should be done
* with a small threshold of tolerance, rather than exact equality.

View file

@ -8,7 +8,7 @@
#include <pow.h>
#include <streams.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <boost/test/unit_test.hpp>

View file

@ -9,8 +9,8 @@
#include <miner.h>
#include <pow.h>
#include <script/standard.h>
#include <test/lib/blockfilter.h>
#include <test/setup_common.h>
#include <test/util/blockfilter.h>
#include <test/util/setup_common.h>
#include <util/time.h>
#include <validation.h>

View file

@ -3,7 +3,7 @@
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <test/data/blockfilters.json.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <blockfilter.h>
#include <core_io.h>

View file

@ -15,7 +15,7 @@
#include <uint256.h>
#include <util/system.h>
#include <util/strencodings.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <vector>

View file

@ -3,7 +3,7 @@
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <compat/byteswap.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <boost/test/unit_test.hpp>

View file

@ -7,7 +7,7 @@
#include <util/time.h>
#include <validation.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <checkqueue.h>
#include <boost/test/unit_test.hpp>
#include <boost/thread.hpp>

View file

@ -7,7 +7,7 @@
#include <coins.h>
#include <script/standard.h>
#include <streams.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <uint256.h>
#include <undo.h>
#include <util/strencodings.h>

View file

@ -2,7 +2,7 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <boost/test/unit_test.hpp>
BOOST_FIXTURE_TEST_SUITE(compilerbug_tests, BasicTestingSetup)

View file

@ -3,7 +3,7 @@
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <compressor.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <script/standard.h>
#include <stdint.h>

View file

@ -15,7 +15,7 @@
#include <crypto/sha512.h>
#include <random.h>
#include <util/strencodings.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <vector>

View file

@ -4,7 +4,7 @@
#include <boost/test/unit_test.hpp>
#include <cuckoocache.h>
#include <script/sigcache.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <random.h>
#include <thread>

View file

@ -4,7 +4,7 @@
#include <dbwrapper.h>
#include <uint256.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <util/memory.h>
#include <memory>

View file

@ -17,7 +17,7 @@
#include <util/time.h>
#include <validation.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <stdint.h>

View file

@ -6,7 +6,7 @@
#include <string>
#include <script/sign.h>
#include <script/standard.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <boost/test/unit_test.hpp>
#include <script/descriptor.h>
#include <util/strencodings.h>

View file

@ -5,7 +5,7 @@
#include <clientversion.h>
#include <flatfile.h>
#include <streams.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <util/system.h>
#include <boost/test/unit_test.hpp>

View file

@ -3,7 +3,7 @@
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
//
#include <fs.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <util/system.h>
#include <boost/test/unit_test.hpp>

View file

@ -4,7 +4,7 @@
#include <util/strencodings.h>
#include <util/system.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <string>
#include <utility>

View file

@ -6,7 +6,7 @@
#include <crypto/siphash.h>
#include <hash.h>
#include <util/strencodings.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <boost/test/unit_test.hpp>

View file

@ -9,7 +9,7 @@
#include <key_io.h>
#include <script/script.h>
#include <util/strencodings.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <boost/test/unit_test.hpp>

View file

@ -4,7 +4,7 @@
#include <key.h>
#include <uint256.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <vector>
#include <boost/test/unit_test.hpp>

View file

@ -8,7 +8,7 @@
#include <uint256.h>
#include <util/system.h>
#include <util/strencodings.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <string>
#include <vector>

View file

@ -4,7 +4,7 @@
#include <limitedmap.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <boost/test/unit_test.hpp>

View file

@ -4,7 +4,7 @@
#include <logging.h>
#include <logging/timer.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <chrono>

View file

@ -7,7 +7,7 @@
#include <util/system.h>
#include <util/time.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <boost/test/unit_test.hpp>
#include <vector>

View file

@ -3,7 +3,7 @@
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <consensus/merkle.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <boost/test/unit_test.hpp>

View file

@ -4,7 +4,7 @@
#include <merkleblock.h>
#include <uint256.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <boost/test/unit_test.hpp>

View file

@ -17,7 +17,7 @@
#include <util/time.h>
#include <validation.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <memory>

View file

@ -11,7 +11,7 @@
#include <script/signingprovider.h>
#include <tinyformat.h>
#include <uint256.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <boost/test/unit_test.hpp>

View file

@ -5,7 +5,7 @@
#include <addrdb.h>
#include <addrman.h>
#include <clientversion.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <string>
#include <boost/test/unit_test.hpp>
#include <serialize.h>

View file

@ -4,7 +4,7 @@
#include <netbase.h>
#include <net_permissions.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <util/strencodings.h>
#include <string>

View file

@ -9,7 +9,7 @@
#include <uint256.h>
#include <arith_uint256.h>
#include <version.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <vector>

View file

@ -8,7 +8,7 @@
#include <uint256.h>
#include <util/time.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <boost/test/unit_test.hpp>

View file

@ -5,7 +5,7 @@
#include <chain.h>
#include <chainparams.h>
#include <pow.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <boost/test/unit_test.hpp>

View file

@ -9,7 +9,7 @@
#include <serialize.h>
#include <streams.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <boost/test/unit_test.hpp>

View file

@ -12,7 +12,7 @@
#include <support/events.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <boost/test/unit_test.hpp>

View file

@ -4,7 +4,7 @@
#include <random.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <boost/test/unit_test.hpp>

View file

@ -3,7 +3,7 @@
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <reverselock.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <boost/test/unit_test.hpp>

View file

@ -9,7 +9,7 @@
#include <core_io.h>
#include <interfaces/chain.h>
#include <node/context.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <util/time.h>
#include <boost/algorithm/string.hpp>

View file

@ -4,7 +4,7 @@
#include <compat/sanity.h>
#include <key.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <boost/test/unit_test.hpp>

View file

@ -5,7 +5,7 @@
#include <random.h>
#include <scheduler.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <boost/thread.hpp>
#include <boost/test/unit_test.hpp>

View file

@ -11,7 +11,7 @@
#include <policy/settings.h>
#include <script/sign.h>
#include <script/signingprovider.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <vector>

View file

@ -6,7 +6,7 @@
#include <script/script.h>
#include <script/signingprovider.h>
#include <script/standard.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <boost/test/unit_test.hpp>

View file

@ -12,8 +12,8 @@
#include <script/signingprovider.h>
#include <util/system.h>
#include <util/strencodings.h>
#include <test/lib/transaction_utils.h>
#include <test/setup_common.h>
#include <test/util/transaction_utils.h>
#include <test/util/setup_common.h>
#include <rpc/util.h>
#include <streams.h>

View file

@ -4,7 +4,7 @@
#include <test/scriptnum10.h>
#include <script/script.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <boost/test/unit_test.hpp>
#include <limits.h>

View file

@ -5,7 +5,7 @@
#include <serialize.h>
#include <streams.h>
#include <hash.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <util/strencodings.h>
#include <stdint.h>

View file

@ -10,7 +10,7 @@
#include <script/script.h>
#include <serialize.h>
#include <streams.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <util/system.h>
#include <util/strencodings.h>
#include <version.h>

View file

@ -9,7 +9,7 @@
#include <script/script.h>
#include <script/standard.h>
#include <uint256.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <vector>

View file

@ -3,7 +3,7 @@
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <chain.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <vector>

View file

@ -3,7 +3,7 @@
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <streams.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <boost/test/unit_test.hpp>

View file

@ -3,7 +3,7 @@
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <sync.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <boost/test/unit_test.hpp>

View file

@ -5,8 +5,8 @@
#include <netaddress.h>
#include <noui.h>
#include <test/lib/logging.h>
#include <test/setup_common.h>
#include <test/util/logging.h>
#include <test/util/setup_common.h>
#include <timedata.h>
#include <warnings.h>

View file

@ -2,7 +2,7 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
//
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <boost/test/unit_test.hpp>

View file

@ -4,7 +4,7 @@
#include <test/data/tx_invalid.json.h>
#include <test/data/tx_valid.json.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <clientversion.h>
#include <checkqueue.h>

View file

@ -5,7 +5,7 @@
#include <chainparams.h>
#include <index/txindex.h>
#include <script/standard.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <util/time.h>
#include <boost/test/unit_test.hpp>

View file

@ -6,7 +6,7 @@
#include <consensus/validation.h>
#include <primitives/transaction.h>
#include <script/script.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <boost/test/unit_test.hpp>

View file

@ -9,7 +9,7 @@
#include <script/standard.h>
#include <script/sign.h>
#include <script/signingprovider.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <boost/test/unit_test.hpp>

View file

@ -6,7 +6,7 @@
#include <streams.h>
#include <uint256.h>
#include <version.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <boost/test/unit_test.hpp>
#include <sstream>

11
src/test/util/README.md Normal file
View file

@ -0,0 +1,11 @@
# Test library
This contains files for the test library, which is used by the test binaries (unit tests, benchmarks, fuzzers, gui
tests).
Generally, the files in this folder should be well-separated modules. New code should be added to existing modules or
(when in doubt) a new module should be created.
The utilities in here are compiled into a library, which does not hold any state. However, the main file `setup_common`
defines the common test setup for all test binaries. The test binaries will handle the global state when they
instantiate the `BasicTestingSetup` (or one of its derived classes).

View file

@ -2,7 +2,7 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <test/lib/blockfilter.h>
#include <test/util/blockfilter.h>
#include <chainparams.h>
#include <validation.h>

View file

@ -2,12 +2,12 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_TEST_LIB_BLOCKFILTER_H
#define BITCOIN_TEST_LIB_BLOCKFILTER_H
#ifndef BITCOIN_TEST_UTIL_BLOCKFILTER_H
#define BITCOIN_TEST_UTIL_BLOCKFILTER_H
#include <blockfilter.h>
class CBlockIndex;
bool ComputeFilter(BlockFilterType filter_type, const CBlockIndex* block_index, BlockFilter& filter);
#endif // BITCOIN_TEST_LIB_BLOCKFILTER_H
#endif // BITCOIN_TEST_UTIL_BLOCKFILTER_H

View file

@ -2,7 +2,7 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <test/lib/logging.h>
#include <test/util/logging.h>
#include <logging.h>
#include <noui.h>

View file

@ -2,8 +2,8 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_TEST_LIB_LOGGING_H
#define BITCOIN_TEST_LIB_LOGGING_H
#ifndef BITCOIN_TEST_UTIL_LOGGING_H
#define BITCOIN_TEST_UTIL_LOGGING_H
#include <util/macros.h>
@ -26,4 +26,4 @@ public:
#define ASSERT_DEBUG_LOG(message) DebugLogHelper PASTE2(debugloghelper, __COUNTER__)(message)
#endif // BITCOIN_TEST_LIB_LOGGING_H
#endif // BITCOIN_TEST_UTIL_LOGGING_H

View file

@ -2,7 +2,7 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <banman.h>
#include <chainparams.h>

View file

@ -2,8 +2,8 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_TEST_SETUP_COMMON_H
#define BITCOIN_TEST_SETUP_COMMON_H
#ifndef BITCOIN_TEST_UTIL_SETUP_COMMON_H
#define BITCOIN_TEST_UTIL_SETUP_COMMON_H
#include <chainparamsbase.h>
#include <fs.h>

View file

@ -2,7 +2,7 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <test/lib/transaction_utils.h>
#include <test/util/transaction_utils.h>
CMutableTransaction BuildCreditingTransaction(const CScript& scriptPubKey, int nValue)
{

View file

@ -2,8 +2,8 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_TEST_LIB_TRANSACTION_UTILS_H
#define BITCOIN_TEST_LIB_TRANSACTION_UTILS_H
#ifndef BITCOIN_TEST_UTIL_TRANSACTION_UTILS_H
#define BITCOIN_TEST_UTIL_TRANSACTION_UTILS_H
#include <primitives/transaction.h>
@ -16,4 +16,4 @@ CMutableTransaction BuildCreditingTransaction(const CScript& scriptPubKey, int n
// 1 output with empty scriptPubKey, full value of referenced transaction]
CMutableTransaction BuildSpendingTransaction(const CScript& scriptSig, const CScriptWitness& scriptWitness, const CTransaction& txCredit);
#endif // BITCOIN_TEST_LIB_TRANSACTION_UTILS_H
#endif // BITCOIN_TEST_UTIL_TRANSACTION_UTILS_H

View file

@ -6,7 +6,7 @@
#include <clientversion.h>
#include <sync.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <test/util.h>
#include <util/moneystr.h>
#include <util/strencodings.h>

View file

@ -3,7 +3,7 @@
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <util/threadnames.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <thread>
#include <vector>

View file

@ -11,7 +11,7 @@
#include <pow.h>
#include <random.h>
#include <script/standard.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <util/time.h>
#include <validation.h>
#include <validationinterface.h>

View file

@ -6,7 +6,7 @@
#include <net.h>
#include <validation.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <boost/signals2/signal.hpp>
#include <boost/test/unit_test.hpp>

View file

@ -4,7 +4,7 @@
#include <chain.h>
#include <versionbits.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <chainparams.h>
#include <validation.h>
#include <consensus/params.h>

View file

@ -9,7 +9,7 @@
#include <amount.h>
#include <primitives/transaction.h>
#include <random.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <wallet/test/wallet_test_fixture.h>
#include <boost/test/unit_test.hpp>

View file

@ -7,7 +7,7 @@
#include <boost/test/unit_test.hpp>
#include <fs.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <wallet/db.h>

View file

@ -7,7 +7,7 @@
#include <interfaces/chain.h>
#include <node/context.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
struct InitWalletDirTestingSetup: public BasicTestingSetup {

View file

@ -5,8 +5,8 @@
#include <boost/test/unit_test.hpp>
#include <noui.h>
#include <test/lib/logging.h>
#include <test/setup_common.h>
#include <test/util/logging.h>
#include <test/util/setup_common.h>
#include <util/system.h>
#include <wallet/test/init_test_fixture.h>

View file

@ -6,7 +6,7 @@
#include <node/context.h>
#include <script/script.h>
#include <script/standard.h>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <wallet/ismine.h>
#include <wallet/wallet.h>

View file

@ -9,7 +9,7 @@
#include <wallet/wallet.h>
#include <boost/test/unit_test.hpp>
#include <test/setup_common.h>
#include <test/util/setup_common.h>
#include <wallet/test/wallet_test_fixture.h>
BOOST_FIXTURE_TEST_SUITE(psbt_wallet_tests, WalletTestingSetup)

Some files were not shown because too many files have changed in this diff Show more