2016-09-29 07:57:47 +02:00
|
|
|
# Copyright (c) 2013-2016 The Bitcoin Core developers
|
2018-01-12 16:11:18 +01:00
|
|
|
# Copyright (c) 2014-2018 The Dash Core developers
|
2016-09-29 07:57:47 +02:00
|
|
|
# Distributed under the MIT software license, see the accompanying
|
|
|
|
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
2015-04-03 00:51:08 +02:00
|
|
|
bin_PROGRAMS += qt/test/test_dash-qt
|
|
|
|
TESTS += qt/test/test_dash-qt
|
2014-05-28 19:38:41 +02:00
|
|
|
|
2017-02-28 10:00:02 +01:00
|
|
|
TEST_QT_MOC_CPP = \
|
|
|
|
qt/test/moc_compattests.cpp \
|
2016-09-20 12:59:08 +02:00
|
|
|
qt/test/moc_rpcnestedtests.cpp \
|
Qt: bug fixes and enhancement to traffic graph widget (#1429)
* clear trafficgraph on clear button click
* set default sample height
set default sample height so after clearing traffic graph have some
scale
* reduce available traffic graph ranges, add optimized graph data storage
reduce available traffic graph ranges to 10
(5m,10m,15m,30m,1h,2h,3h,6h,12h,24h),
store graph data so range change is possible,
data storage contains only necessary data to create graphs for all
supported ranges
eg. for 10m range storage only half of 10m samples - the second half is
calculated from 5m range samples,
encapsulate all traffic graph related data into one class
* code formatting corrections
2017-05-28 15:49:34 +02:00
|
|
|
qt/test/moc_trafficgraphdatatests.cpp \
|
2017-03-17 14:30:48 +01:00
|
|
|
qt/test/moc_uritests.cpp
|
2014-05-28 19:38:41 +02:00
|
|
|
|
|
|
|
if ENABLE_WALLET
|
2017-03-17 14:30:48 +01:00
|
|
|
TEST_QT_MOC_CPP += \
|
2021-05-23 00:24:26 +02:00
|
|
|
qt/test/moc_addressbooktests.cpp \
|
2017-03-17 14:30:48 +01:00
|
|
|
qt/test/moc_wallettests.cpp
|
2018-10-24 15:24:52 +02: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 = \
|
2021-05-23 00:24:26 +02:00
|
|
|
qt/test/addressbooktests.h \
|
2017-02-28 10:00:02 +01:00
|
|
|
qt/test/compattests.h \
|
2016-09-20 12:59:08 +02:00
|
|
|
qt/test/rpcnestedtests.h \
|
2014-05-28 19:38:41 +02:00
|
|
|
qt/test/uritests.h \
|
2021-05-23 00:24:26 +02:00
|
|
|
qt/test/util.h \
|
2014-05-28 19:38:41 +02:00
|
|
|
qt/test/paymentrequestdata.h \
|
Qt: bug fixes and enhancement to traffic graph widget (#1429)
* clear trafficgraph on clear button click
* set default sample height
set default sample height so after clearing traffic graph have some
scale
* reduce available traffic graph ranges, add optimized graph data storage
reduce available traffic graph ranges to 10
(5m,10m,15m,30m,1h,2h,3h,6h,12h,24h),
store graph data so range change is possible,
data storage contains only necessary data to create graphs for all
supported ranges
eg. for 10m range storage only half of 10m samples - the second half is
calculated from 5m range samples,
encapsulate all traffic graph related data into one class
* code formatting corrections
2017-05-28 15:49:34 +02:00
|
|
|
qt/test/paymentservertests.h \
|
2017-03-17 14:30:48 +01:00
|
|
|
qt/test/trafficgraphdatatests.h \
|
|
|
|
qt/test/wallettests.h
|
|
|
|
|
|
|
|
TEST_BITCOIN_CPP = \
|
2017-09-05 23:21:00 +02:00
|
|
|
test/test_dash.cpp
|
2017-03-17 14:30:48 +01:00
|
|
|
|
|
|
|
TEST_BITCOIN_H = \
|
2017-09-05 23:21:00 +02:00
|
|
|
test/test_dash.h
|
2016-02-02 16:28:56 +01:00
|
|
|
qt_test_test_dash_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
|
|
|
|
2015-04-03 00:51:08 +02:00
|
|
|
qt_test_test_dash_qt_SOURCES = \
|
2017-02-28 10:00:02 +01:00
|
|
|
qt/test/compattests.cpp \
|
2016-09-20 12:59:08 +02:00
|
|
|
qt/test/rpcnestedtests.cpp \
|
2014-05-28 19:38:41 +02:00
|
|
|
qt/test/test_main.cpp \
|
Qt: bug fixes and enhancement to traffic graph widget (#1429)
* clear trafficgraph on clear button click
* set default sample height
set default sample height so after clearing traffic graph have some
scale
* reduce available traffic graph ranges, add optimized graph data storage
reduce available traffic graph ranges to 10
(5m,10m,15m,30m,1h,2h,3h,6h,12h,24h),
store graph data so range change is possible,
data storage contains only necessary data to create graphs for all
supported ranges
eg. for 10m range storage only half of 10m samples - the second half is
calculated from 5m range samples,
encapsulate all traffic graph related data into one class
* code formatting corrections
2017-05-28 15:49:34 +02:00
|
|
|
qt/test/trafficgraphdatatests.cpp \
|
2021-05-23 00:24:26 +02:00
|
|
|
qt/test/uritests.cpp \
|
|
|
|
qt/test/util.cpp \
|
2017-03-17 14:30:48 +01:00
|
|
|
$(TEST_QT_H) \
|
|
|
|
$(TEST_BITCOIN_CPP) \
|
|
|
|
$(TEST_BITCOIN_H)
|
2014-05-28 19:38:41 +02:00
|
|
|
if ENABLE_WALLET
|
2015-04-03 00:51:08 +02:00
|
|
|
qt_test_test_dash_qt_SOURCES += \
|
2021-05-23 00:24:26 +02:00
|
|
|
qt/test/addressbooktests.cpp \
|
2017-05-23 19:23:35 +02:00
|
|
|
qt/test/wallettests.cpp \
|
|
|
|
wallet/test/wallet_test_fixture.cpp
|
2018-10-24 15:24:52 +02:00
|
|
|
if ENABLE_BIP70
|
|
|
|
qt_test_test_dash_qt_SOURCES += \
|
|
|
|
qt/test/paymentservertests.cpp
|
|
|
|
endif # ENABLE_BIP70
|
|
|
|
endif # ENABLE_WALLET
|
2014-05-28 19:38:41 +02:00
|
|
|
|
2015-04-03 00:51:08 +02:00
|
|
|
nodist_qt_test_test_dash_qt_SOURCES = $(TEST_QT_MOC_CPP)
|
2014-05-28 19:38:41 +02:00
|
|
|
|
2015-04-03 00:51:08 +02:00
|
|
|
qt_test_test_dash_qt_LDADD = $(LIBBITCOINQT) $(LIBBITCOIN_SERVER)
|
2014-05-28 19:38:41 +02:00
|
|
|
if ENABLE_WALLET
|
2017-04-17 21:10:47 +02:00
|
|
|
qt_test_test_dash_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
|
2016-02-02 16:28:56 +01:00
|
|
|
qt_test_test_dash_qt_LDADD += $(LIBBITCOIN_ZMQ) $(ZMQ_LIBS)
|
2014-11-18 18:06:32 +01:00
|
|
|
endif
|
2016-02-02 18:37:36 +01:00
|
|
|
qt_test_test_dash_qt_LDADD += $(LIBBITCOIN_CLI) $(LIBBITCOIN_COMMON) $(LIBBITCOIN_UTIL) $(LIBBITCOIN_CONSENSUS) $(LIBBITCOIN_CRYPTO) $(LIBUNIVALUE) $(LIBLEVELDB) \
|
2017-06-13 19:38:37 +02:00
|
|
|
$(LIBLEVELDB_SSE42) $(LIBMEMENV) $(BACKTRACE_LIB) $(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) \
|
2021-08-10 21:35:55 +02:00
|
|
|
$(EVENT_PTHREADS_LIBS) $(EVENT_LIBS) $(BLS_LIBS) $(GMP_LIBS)
|
2019-02-21 19:37:16 +01:00
|
|
|
qt_test_test_dash_qt_LDFLAGS = $(LDFLAGS_WRAP_EXCEPTIONS) $(RELDFLAGS) $(AM_LDFLAGS) $(QT_LDFLAGS) $(LIBTOOL_APP_LDFLAGS)
|
2016-02-02 16:28:56 +01:00
|
|
|
qt_test_test_dash_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)
|
|
|
|
|
2015-04-03 00:51:08 +02:00
|
|
|
test_dash_qt : qt/test/test_dash-qt$(EXEEXT)
|
2014-05-28 19:38:41 +02:00
|
|
|
|
2015-04-03 00:51:08 +02:00
|
|
|
test_dash_qt_check : qt/test/test_dash-qt$(EXEEXT) FORCE
|
2014-05-28 19:38:41 +02:00
|
|
|
$(MAKE) check-TESTS TESTS=$^
|
|
|
|
|
2015-04-03 00:51:08 +02:00
|
|
|
test_dash_qt_clean: FORCE
|
|
|
|
rm -f $(CLEAN_BITCOIN_QT_TEST) $(qt_test_test_dash_qt_OBJECTS)
|