Merge #17542: build: Create test utility library from src/test/util/
pull/764/heada2e581de94
build: Create test utility library from src/test/util/ (Harris) Pull request description: This PR creates a static **test utility library** that replaces repetitive compilations of sources from *src/test/util* in **unit**, **gui** and **bench** **tests**. The original issue is here: https://github.com/bitcoin/bitcoin/issues/17401 The changes are: * a new *Makefile.test_util.include* * a new entry in *Makefile.am* that includes *Makefile.test_util.include* when testing is enabled * removal of all *src/test/util* headers & sources from unit, gui and bench Makefiles * addition of *libtest_util.a* at LDADD's of every test ACKs for top commit: MarcoFalke: ACKa2e581de94
🍞 Tree-SHA512: d172127a26ee70d16625e17d7d94337a65472c57bb97f910c357c52d3dc082ea478ee586ee9074d9ebfeb05b75027e5e15f5bcd2aa35962dadfd9ac6bfd55ab9
commit
b983e7e172
@ -0,0 +1,31 @@
|
|||||||
|
# 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/logging.h \
|
||||||
|
test/util/setup_common.h \
|
||||||
|
test/util/str.h \
|
||||||
|
test/util/transaction_utils.h
|
||||||
|
|
||||||
|
libtest_util_a_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES) $(MINIUPNPC_CPPFLAGS) $(EVENT_CFLAGS) $(EVENT_PTHREADS_CFLAGS)
|
||||||
|
libtest_util_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
|
||||||
|
libtest_util_a_SOURCES = \
|
||||||
|
test/util/blockfilter.cpp \
|
||||||
|
test/util/logging.cpp \
|
||||||
|
test/util/setup_common.cpp \
|
||||||
|
test/util/str.cpp \
|
||||||
|
test/util/transaction_utils.cpp \
|
||||||
|
$(TEST_UTIL_H)
|
||||||
|
|
||||||
|
LIBTEST_UTIL += $(LIBBITCOIN_SERVER)
|
||||||
|
LIBTEST_UTIL += $(LIBBITCOIN_COMMON)
|
||||||
|
LIBTEST_UTIL += $(LIBBITCOIN_UTIL)
|
||||||
|
LIBTEST_UTIL += $(LIBBITCOIN_CRYPTO_BASE)
|
||||||
|
|
Loading…
Reference in new issue