2024-02-05 23:00:22 +01:00
|
|
|
bin_PROGRAMS += qt/test/test_neobytes-qt
|
|
|
|
TESTS += qt/test/test_neobytes-qt
|
2014-05-28 19:38:41 +02:00
|
|
|
|
2024-12-16 19:40:22 +01:00
|
|
|
TEST_QT_MOC_CPP = qt/test/moc_uritests.cpp
|
2014-05-28 19:38:41 +02:00
|
|
|
|
|
|
|
if ENABLE_WALLET
|
|
|
|
TEST_QT_MOC_CPP += qt/test/moc_paymentservertests.cpp
|
|
|
|
endif
|
|
|
|
|
|
|
|
TEST_QT_H = \
|
|
|
|
qt/test/uritests.h \
|
|
|
|
qt/test/paymentrequestdata.h \
|
|
|
|
qt/test/paymentservertests.h
|
|
|
|
|
2024-02-05 23:00:22 +01:00
|
|
|
qt_test_test_neobytes_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
|
|
|
|
2024-02-05 23:00:22 +01:00
|
|
|
qt_test_test_neobytes_qt_SOURCES = \
|
2014-05-28 19:38:41 +02:00
|
|
|
qt/test/test_main.cpp \
|
|
|
|
qt/test/uritests.cpp \
|
|
|
|
$(TEST_QT_H)
|
|
|
|
if ENABLE_WALLET
|
2024-02-05 23:00:22 +01:00
|
|
|
qt_test_test_neobytes_qt_SOURCES += \
|
2014-05-28 19:38:41 +02:00
|
|
|
qt/test/paymentservertests.cpp
|
|
|
|
endif
|
|
|
|
|
2024-02-05 23:00:22 +01:00
|
|
|
nodist_qt_test_test_neobytes_qt_SOURCES = $(TEST_QT_MOC_CPP)
|
2014-05-28 19:38:41 +02:00
|
|
|
|
2024-02-05 23:00:22 +01:00
|
|
|
qt_test_test_neobytes_qt_LDADD = $(LIBBITCOINQT) $(LIBBITCOIN_SERVER)
|
2014-05-28 19:38:41 +02:00
|
|
|
if ENABLE_WALLET
|
2024-02-05 23:00:22 +01:00
|
|
|
qt_test_test_neobytes_qt_LDADD += $(LIBBITCOIN_WALLET)
|
2014-05-28 19:38:41 +02:00
|
|
|
endif
|
2014-11-18 18:06:32 +01:00
|
|
|
if ENABLE_ZMQ
|
2024-02-05 23:00:22 +01:00
|
|
|
qt_test_test_neobytes_qt_LDADD += $(LIBBITCOIN_ZMQ) $(ZMQ_LIBS)
|
2014-11-18 18:06:32 +01:00
|
|
|
endif
|
2024-02-05 23:00:22 +01:00
|
|
|
qt_test_test_neobytes_qt_LDADD += $(LIBBITCOIN_CLI) $(LIBBITCOIN_COMMON) $(LIBBITCOIN_UTIL) $(LIBBITCOIN_CRYPTO) $(LIBUNIVALUE) $(LIBLEVELDB) \
|
2014-05-28 19:38:41 +02:00
|
|
|
$(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)
|
2024-02-05 23:00:22 +01:00
|
|
|
qt_test_test_neobytes_qt_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(QT_LDFLAGS) $(LIBTOOL_APP_LDFLAGS)
|
|
|
|
qt_test_test_neobytes_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)
|
|
|
|
|
2024-02-05 23:00:22 +01:00
|
|
|
test_neobytes_qt : qt/test/test_neobytes-qt$(EXEEXT)
|
2014-05-28 19:38:41 +02:00
|
|
|
|
2024-02-05 23:00:22 +01:00
|
|
|
test_neobytes_qt_check : qt/test/test_neobytes-qt$(EXEEXT) FORCE
|
2014-05-28 19:38:41 +02:00
|
|
|
$(MAKE) check-TESTS TESTS=$^
|
|
|
|
|
2024-02-05 23:00:22 +01:00
|
|
|
test_neobytes_qt_clean: FORCE
|
|
|
|
rm -f $(CLEAN_BITCOIN_QT_TEST) $(qt_test_test_neobytes_qt_OBJECTS)
|