[tests] Fix incorrect memory_cleanse(…) call in crypto_tests.cpp
[bitcoinplatinum.git] / src / Makefile.qttest.include
blob02f30bc9527b10ade4e91c36a1da2141539908a6
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
8 TEST_QT_MOC_CPP = \
9   qt/test/moc_compattests.cpp \
10   qt/test/moc_rpcnestedtests.cpp \
11   qt/test/moc_uritests.cpp
13 if ENABLE_WALLET
14 TEST_QT_MOC_CPP += \
15   qt/test/moc_paymentservertests.cpp \
16   qt/test/moc_wallettests.cpp
17 endif
19 TEST_QT_H = \
20   qt/test/compattests.h \
21   qt/test/rpcnestedtests.h \
22   qt/test/uritests.h \
23   qt/test/paymentrequestdata.h \
24   qt/test/paymentservertests.h \
25   qt/test/wallettests.h
27 TEST_BITCOIN_CPP = \
28   test/test_bitcoin.cpp \
29   test/testutil.cpp
31 TEST_BITCOIN_H = \
32   test/test_bitcoin.h \
33   test/testutil.h
35 qt_test_test_bitcoin_qt_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES) $(BITCOIN_QT_INCLUDES) \
36   $(QT_INCLUDES) $(QT_TEST_INCLUDES) $(PROTOBUF_CFLAGS)
38 qt_test_test_bitcoin_qt_SOURCES = \
39   qt/test/compattests.cpp \
40   qt/test/rpcnestedtests.cpp \
41   qt/test/test_main.cpp \
42   qt/test/uritests.cpp \
43   $(TEST_QT_H) \
44   $(TEST_BITCOIN_CPP) \
45   $(TEST_BITCOIN_H)
46 if ENABLE_WALLET
47 qt_test_test_bitcoin_qt_SOURCES += \
48   qt/test/paymentservertests.cpp \
49   qt/test/wallettests.cpp \
50   wallet/test/wallet_test_fixture.cpp
51 endif
53 nodist_qt_test_test_bitcoin_qt_SOURCES = $(TEST_QT_MOC_CPP)
55 qt_test_test_bitcoin_qt_LDADD = $(LIBBITCOINQT) $(LIBBITCOIN_SERVER)
56 if ENABLE_WALLET
57 qt_test_test_bitcoin_qt_LDADD += $(LIBBITCOIN_WALLET)
58 endif
59 if ENABLE_ZMQ
60 qt_test_test_bitcoin_qt_LDADD += $(LIBBITCOIN_ZMQ) $(ZMQ_LIBS)
61 endif
62 qt_test_test_bitcoin_qt_LDADD += $(LIBBITCOIN_CLI) $(LIBBITCOIN_COMMON) $(LIBBITCOIN_UTIL) $(LIBBITCOIN_CONSENSUS) $(LIBBITCOIN_CRYPTO) $(LIBUNIVALUE) $(LIBLEVELDB) \
63   $(LIBLEVELDB_SSE42) $(LIBMEMENV) $(BOOST_LIBS) $(QT_DBUS_LIBS) $(QT_TEST_LIBS) $(QT_LIBS) \
64   $(QR_LIBS) $(PROTOBUF_LIBS) $(BDB_LIBS) $(SSL_LIBS) $(CRYPTO_LIBS) $(MINIUPNPC_LIBS) $(LIBSECP256K1) \
65   $(EVENT_PTHREADS_LIBS) $(EVENT_LIBS)
66 qt_test_test_bitcoin_qt_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(QT_LDFLAGS) $(LIBTOOL_APP_LDFLAGS)
67 qt_test_test_bitcoin_qt_CXXFLAGS = $(AM_CXXFLAGS) $(QT_PIE_FLAGS)
69 CLEAN_BITCOIN_QT_TEST = $(TEST_QT_MOC_CPP) qt/test/*.gcda qt/test/*.gcno
71 CLEANFILES += $(CLEAN_BITCOIN_QT_TEST)
73 test_bitcoin_qt : qt/test/test_bitcoin-qt$(EXEEXT)
75 test_bitcoin_qt_check : qt/test/test_bitcoin-qt$(EXEEXT) FORCE
76         $(MAKE) check-TESTS TESTS=$^
78 test_bitcoin_qt_clean: FORCE
79         rm -f $(CLEAN_BITCOIN_QT_TEST) $(qt_test_test_bitcoin_qt_OBJECTS)