2016-09-22 00:31:23 +02:00
|
|
|
# Copyright (c) 2013-2016 The Bitcoin Core developers
|
|
|
|
# Distributed under the MIT software license, see the accompanying
|
|
|
|
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
2014-05-28 19:38:41 +02:00
|
|
|
bin_PROGRAMS += qt/test/test_bitcoin-qt
|
|
|
|
TESTS += qt/test/test_bitcoin-qt
|
|
|
|
|
2016-08-20 11:19:35 +02:00
|
|
|
TEST_QT_MOC_CPP = \
|
2017-11-07 02:11:43 +01:00
|
|
|
qt/test/moc_apptests.cpp \
|
2016-12-16 08:52:35 +01:00
|
|
|
qt/test/moc_compattests.cpp \
|
2016-08-20 11:19:35 +02:00
|
|
|
qt/test/moc_rpcnestedtests.cpp \
|
|
|
|
qt/test/moc_uritests.cpp
|
2014-05-28 19:38:41 +02:00
|
|
|
|
|
|
|
if ENABLE_WALLET
|
2017-03-10 21:58:53 +01:00
|
|
|
TEST_QT_MOC_CPP += \
|
2018-03-29 16:59:57 +02:00
|
|
|
qt/test/moc_addressbooktests.cpp \
|
2017-03-10 21:58:53 +01:00
|
|
|
qt/test/moc_wallettests.cpp
|
2017-11-06 19:12:47 +01:00
|
|
|
if ENABLE_BIP70
|
|
|
|
TEST_QT_MOC_CPP += \
|
|
|
|
qt/test/moc_paymentservertests.cpp
|
|
|
|
endif # ENABLE_BIP70
|
|
|
|
endif # ENABLE_WALLET
|
2014-05-28 19:38:41 +02:00
|
|
|
|
|
|
|
TEST_QT_H = \
|
2018-03-29 16:59:57 +02:00
|
|
|
qt/test/addressbooktests.h \
|
2017-11-07 02:11:43 +01:00
|
|
|
qt/test/apptests.h \
|
2016-12-16 08:52:35 +01:00
|
|
|
qt/test/compattests.h \
|
2016-08-20 11:19:35 +02:00
|
|
|
qt/test/rpcnestedtests.h \
|
2014-05-28 19:38:41 +02:00
|
|
|
qt/test/uritests.h \
|
2018-03-29 16:56:04 +02:00
|
|
|
qt/test/util.h \
|
2014-05-28 19:38:41 +02:00
|
|
|
qt/test/paymentrequestdata.h \
|
2017-03-10 21:58:53 +01:00
|
|
|
qt/test/paymentservertests.h \
|
|
|
|
qt/test/wallettests.h
|
|
|
|
|
|
|
|
TEST_BITCOIN_CPP = \
|
2017-09-05 05:02:17 +02:00
|
|
|
test/test_bitcoin.cpp
|
2017-03-10 21:58:53 +01:00
|
|
|
|
|
|
|
TEST_BITCOIN_H = \
|
2017-09-05 05:02:17 +02:00
|
|
|
test/test_bitcoin.h
|
2014-05-28 19:38:41 +02:00
|
|
|
|
2015-11-10 02:50:25 +01:00
|
|
|
qt_test_test_bitcoin_qt_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES) $(BITCOIN_QT_INCLUDES) \
|
2014-10-10 19:03:28 +02:00
|
|
|
$(QT_INCLUDES) $(QT_TEST_INCLUDES) $(PROTOBUF_CFLAGS)
|
2014-05-28 19:38:41 +02:00
|
|
|
|
|
|
|
qt_test_test_bitcoin_qt_SOURCES = \
|
2017-11-07 02:11:43 +01:00
|
|
|
qt/test/apptests.cpp \
|
2016-12-16 08:52:35 +01:00
|
|
|
qt/test/compattests.cpp \
|
2016-08-20 11:19:35 +02:00
|
|
|
qt/test/rpcnestedtests.cpp \
|
2014-05-28 19:38:41 +02:00
|
|
|
qt/test/test_main.cpp \
|
|
|
|
qt/test/uritests.cpp \
|
2018-03-29 16:56:04 +02:00
|
|
|
qt/test/util.cpp \
|
2017-03-10 21:58:53 +01:00
|
|
|
$(TEST_QT_H) \
|
|
|
|
$(TEST_BITCOIN_CPP) \
|
|
|
|
$(TEST_BITCOIN_H)
|
2014-05-28 19:38:41 +02:00
|
|
|
if ENABLE_WALLET
|
|
|
|
qt_test_test_bitcoin_qt_SOURCES += \
|
2018-03-29 16:59:57 +02:00
|
|
|
qt/test/addressbooktests.cpp \
|
2017-04-28 19:59:25 +02:00
|
|
|
qt/test/wallettests.cpp \
|
|
|
|
wallet/test/wallet_test_fixture.cpp
|
2017-11-06 19:12:47 +01:00
|
|
|
if ENABLE_BIP70
|
|
|
|
qt_test_test_bitcoin_qt_SOURCES += \
|
|
|
|
qt/test/paymentservertests.cpp
|
|
|
|
endif # ENABLE_BIP70
|
|
|
|
endif # ENABLE_WALLET
|
2014-05-28 19:38:41 +02:00
|
|
|
|
|
|
|
nodist_qt_test_test_bitcoin_qt_SOURCES = $(TEST_QT_MOC_CPP)
|
|
|
|
|
|
|
|
qt_test_test_bitcoin_qt_LDADD = $(LIBBITCOINQT) $(LIBBITCOIN_SERVER)
|
|
|
|
if ENABLE_WALLET
|
2017-04-17 21:10:47 +02:00
|
|
|
qt_test_test_bitcoin_qt_LDADD += $(LIBBITCOIN_UTIL) $(LIBBITCOIN_WALLET)
|
2014-05-28 19:38:41 +02:00
|
|
|
endif
|
2014-11-18 18:06:32 +01:00
|
|
|
if ENABLE_ZMQ
|
|
|
|
qt_test_test_bitcoin_qt_LDADD += $(LIBBITCOIN_ZMQ) $(ZMQ_LIBS)
|
|
|
|
endif
|
2018-06-06 21:20:34 +02:00
|
|
|
qt_test_test_bitcoin_qt_LDADD += $(LIBBITCOIN_CLI) $(LIBBITCOIN_COMMON) $(LIBBITCOIN_UTIL) $(LIBBITCOIN_CONSENSUS) $(LIBBITCOIN_CRYPTO) $(LIBUNIVALUE) $(LIBLEVELDB) \
|
2017-04-13 19:09:19 +02:00
|
|
|
$(LIBLEVELDB_SSE42) $(LIBMEMENV) $(BOOST_LIBS) $(QT_DBUS_LIBS) $(QT_TEST_LIBS) $(QT_LIBS) \
|
2015-01-20 06:04:59 +01:00
|
|
|
$(QR_LIBS) $(PROTOBUF_LIBS) $(BDB_LIBS) $(SSL_LIBS) $(CRYPTO_LIBS) $(MINIUPNPC_LIBS) $(LIBSECP256K1) \
|
|
|
|
$(EVENT_PTHREADS_LIBS) $(EVENT_LIBS)
|
2014-10-15 00:03:52 +02:00
|
|
|
qt_test_test_bitcoin_qt_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(QT_LDFLAGS) $(LIBTOOL_APP_LDFLAGS)
|
2015-11-10 02:52:37 +01:00
|
|
|
qt_test_test_bitcoin_qt_CXXFLAGS = $(AM_CXXFLAGS) $(QT_PIE_FLAGS)
|
2014-05-28 19:38:41 +02:00
|
|
|
|
|
|
|
CLEAN_BITCOIN_QT_TEST = $(TEST_QT_MOC_CPP) qt/test/*.gcda qt/test/*.gcno
|
|
|
|
|
|
|
|
CLEANFILES += $(CLEAN_BITCOIN_QT_TEST)
|
|
|
|
|
|
|
|
test_bitcoin_qt : qt/test/test_bitcoin-qt$(EXEEXT)
|
|
|
|
|
|
|
|
test_bitcoin_qt_check : qt/test/test_bitcoin-qt$(EXEEXT) FORCE
|
|
|
|
$(MAKE) check-TESTS TESTS=$^
|
|
|
|
|
|
|
|
test_bitcoin_qt_clean: FORCE
|
|
|
|
rm -f $(CLEAN_BITCOIN_QT_TEST) $(qt_test_test_bitcoin_qt_OBJECTS)
|