mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-27 11:43:26 -03:00
a245429d68
4275195606
De-duplicate add_coin methods to a test util helper (Jon Atack)9d92c3d7f4
Create InsecureRandMoneyAmount() test util helper (Jon Atack)81f5ade2a3
Move random test util code from setup_common to random (Jon Atack) Pull request description: - Move random test utilities from `setup_common` to a new `random` file, as many tests don't use this code. - Create a helper to generate semi-random CAmounts up to `MONEY_RANGE` rather than only uint32, and use the helper in the unit tests. - De-duplicate a shared `add_coin` method by extracting it to a `coins` test utility. ACKs for top commit: pinheadmz: ACK4275195606
achow101: ACK4275195606
john-moffett: ACK4275195606
Tree-SHA512: 3ed974251149c7417f935ef2f8865aa0dcc33b281b47522b0f96f1979dff94bb8527957f098fe4d210f40d715c00f29512f2ffe189097102229023b7284a3a27
51 lines
1.3 KiB
Text
51 lines
1.3 KiB
Text
# Copyright (c) 2013-2019 The Bitcoin Core developers
|
|
# Distributed under the MIT software license, see the accompanying
|
|
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
LIBTEST_UTIL=libtest_util.a
|
|
|
|
EXTRA_LIBRARIES += \
|
|
$(LIBTEST_UTIL)
|
|
|
|
TEST_UTIL_H = \
|
|
test/util/blockfilter.h \
|
|
test/util/chainstate.h \
|
|
test/util/coins.h \
|
|
test/util/json.h \
|
|
test/util/logging.h \
|
|
test/util/mining.h \
|
|
test/util/net.h \
|
|
test/util/random.h \
|
|
test/util/script.h \
|
|
test/util/setup_common.h \
|
|
test/util/str.h \
|
|
test/util/transaction_utils.h \
|
|
test/util/txmempool.h \
|
|
test/util/validation.h \
|
|
test/util/xoroshiro128plusplus.h
|
|
|
|
if ENABLE_WALLET
|
|
TEST_UTIL_H += wallet/test/util.h
|
|
endif # ENABLE_WALLET
|
|
|
|
libtest_util_a_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES) $(BOOST_CPPFLAGS)
|
|
libtest_util_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
|
|
libtest_util_a_SOURCES = \
|
|
test/util/blockfilter.cpp \
|
|
test/util/coins.cpp \
|
|
test/util/json.cpp \
|
|
test/util/logging.cpp \
|
|
test/util/mining.cpp \
|
|
test/util/net.cpp \
|
|
test/util/script.cpp \
|
|
test/util/setup_common.cpp \
|
|
test/util/str.cpp \
|
|
test/util/transaction_utils.cpp \
|
|
test/util/txmempool.cpp \
|
|
test/util/validation.cpp
|
|
|
|
if ENABLE_WALLET
|
|
libtest_util_a_SOURCES += wallet/test/util.cpp
|
|
endif # ENABLE_WALLET
|
|
|
|
libtest_util_a_SOURCES += $(TEST_UTIL_H)
|