1 # Copyright (c) 2013-2016 The Bitcoin Core developers
2 # Distributed under the MIT software license, see the accompanying
3 # file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 bin_PROGRAMS += qt/test/test_bitcoin-qt
6 TESTS += qt/test/test_bitcoin-qt
9 qt/test/moc_compattests.cpp \
10 qt/test/moc_rpcnestedtests.cpp \
11 qt/test/moc_uritests.cpp
14 TEST_QT_MOC_CPP += qt/test/moc_paymentservertests.cpp
18 qt/test/compattests.h \
19 qt/test/rpcnestedtests.h \
21 qt/test/paymentrequestdata.h \
22 qt/test/paymentservertests.h
24 qt_test_test_bitcoin_qt_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES) $(BITCOIN_QT_INCLUDES) \
25 $(QT_INCLUDES) $(QT_TEST_INCLUDES) $(PROTOBUF_CFLAGS)
27 qt_test_test_bitcoin_qt_SOURCES = \
28 qt/test/compattests.cpp \
29 qt/test/rpcnestedtests.cpp \
30 qt/test/test_main.cpp \
31 qt/test/uritests.cpp \
34 qt_test_test_bitcoin_qt_SOURCES += \
35 qt/test/paymentservertests.cpp
38 nodist_qt_test_test_bitcoin_qt_SOURCES = $(TEST_QT_MOC_CPP)
40 qt_test_test_bitcoin_qt_LDADD = $(LIBBITCOINQT) $(LIBBITCOIN_SERVER)
42 qt_test_test_bitcoin_qt_LDADD += $(LIBBITCOIN_WALLET)
45 qt_test_test_bitcoin_qt_LDADD += $(LIBBITCOIN_ZMQ) $(ZMQ_LIBS)
47 qt_test_test_bitcoin_qt_LDADD += $(LIBBITCOIN_CLI) $(LIBBITCOIN_COMMON) $(LIBBITCOIN_UTIL) $(LIBBITCOIN_CONSENSUS) $(LIBBITCOIN_CRYPTO) $(LIBUNIVALUE) $(LIBLEVELDB) \
48 $(LIBMEMENV) $(BOOST_LIBS) $(QT_DBUS_LIBS) $(QT_TEST_LIBS) $(QT_LIBS) \
49 $(QR_LIBS) $(PROTOBUF_LIBS) $(BDB_LIBS) $(SSL_LIBS) $(CRYPTO_LIBS) $(MINIUPNPC_LIBS) $(LIBSECP256K1) \
50 $(EVENT_PTHREADS_LIBS) $(EVENT_LIBS)
51 qt_test_test_bitcoin_qt_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(QT_LDFLAGS) $(LIBTOOL_APP_LDFLAGS)
52 qt_test_test_bitcoin_qt_CXXFLAGS = $(AM_CXXFLAGS) $(QT_PIE_FLAGS)
54 CLEAN_BITCOIN_QT_TEST = $(TEST_QT_MOC_CPP) qt/test/*.gcda qt/test/*.gcno
56 CLEANFILES += $(CLEAN_BITCOIN_QT_TEST)
58 test_bitcoin_qt : qt/test/test_bitcoin-qt$(EXEEXT)
60 test_bitcoin_qt_check : qt/test/test_bitcoin-qt$(EXEEXT) FORCE
61 $(MAKE) check-TESTS TESTS=$^
63 test_bitcoin_qt_clean: FORCE
64 rm -f $(CLEAN_BITCOIN_QT_TEST) $(qt_test_test_bitcoin_qt_OBJECTS)