You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

77 lines
2.5 KiB

# Copyright (c) 2013-2016 The Starwels developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
bin_PROGRAMS += qt/test/test_starwels-qt
TESTS += qt/test/test_starwels-qt
TEST_QT_MOC_CPP = \
qt/test/moc_compattests.cpp \
qt/test/moc_rpcnestedtests.cpp \
qt/test/moc_uritests.cpp
if ENABLE_WALLET
TEST_QT_MOC_CPP += \
qt/test/moc_paymentservertests.cpp \
qt/test/moc_wallettests.cpp
endif
TEST_QT_H = \
qt/test/compattests.h \
qt/test/rpcnestedtests.h \
qt/test/uritests.h \
qt/test/paymentrequestdata.h \
qt/test/paymentservertests.h \
qt/test/wallettests.h
TEST_STARWELS_CPP = \
test/test_starwels.cpp
TEST_STARWELS_H = \
test/test_starwels.h
qt_test_test_starwels_qt_CPPFLAGS = $(AM_CPPFLAGS) $(STARWELS_INCLUDES) $(STARWELS_QT_INCLUDES) \
$(QT_INCLUDES) $(QT_TEST_INCLUDES) $(PROTOBUF_CFLAGS)
qt_test_test_starwels_qt_SOURCES = \
qt/test/compattests.cpp \
qt/test/rpcnestedtests.cpp \
qt/test/test_main.cpp \
qt/test/uritests.cpp \
$(TEST_QT_H) \
$(TEST_STARWELS_CPP) \
$(TEST_STARWELS_H)
if ENABLE_WALLET
qt_test_test_starwels_qt_SOURCES += \
qt/test/paymentservertests.cpp \
qt/test/wallettests.cpp \
wallet/test/wallet_test_fixture.cpp
endif
nodist_qt_test_test_starwels_qt_SOURCES = $(TEST_QT_MOC_CPP)
qt_test_test_starwels_qt_LDADD = $(LIBSTARWELSQT) $(LIBSTARWELS_SERVER)
if ENABLE_WALLET
qt_test_test_starwels_qt_LDADD += $(LIBSTARWELS_WALLET)
endif
if ENABLE_ZMQ
qt_test_test_starwels_qt_LDADD += $(LIBSTARWELS_ZMQ) $(ZMQ_LIBS)
endif
qt_test_test_starwels_qt_LDADD += $(LIBSTARWELS_CLI) $(LIBSTARWELS_COMMON) $(LIBSTARWELS_UTIL) $(LIBSTARWELS_CONSENSUS) $(LIBSTARWELS_CRYPTO) $(LIBUNIVALUE) $(LIBLEVELDB) \
$(LIBLEVELDB_SSE42) $(LIBMEMENV) $(BOOST_LIBS) $(QT_DBUS_LIBS) $(QT_TEST_LIBS) $(QT_LIBS) \
$(QR_LIBS) $(PROTOBUF_LIBS) $(BDB_LIBS) $(SSL_LIBS) $(CRYPTO_LIBS) $(MINIUPNPC_LIBS) $(LIBSECP256K1) \
$(EVENT_PTHREADS_LIBS) $(EVENT_LIBS)
qt_test_test_starwels_qt_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(QT_LDFLAGS) $(LIBTOOL_APP_LDFLAGS)
qt_test_test_starwels_qt_CXXFLAGS = $(AM_CXXFLAGS) $(QT_PIE_FLAGS)
CLEAN_STARWELS_QT_TEST = $(TEST_QT_MOC_CPP) qt/test/*.gcda qt/test/*.gcno
CLEANFILES += $(CLEAN_STARWELS_QT_TEST)
test_starwels_qt : qt/test/test_starwels-qt$(EXEEXT)
test_starwels_qt_check : qt/test/test_starwels-qt$(EXEEXT) FORCE
$(MAKE) check-TESTS TESTS=$^
test_starwels_qt_clean: FORCE
rm -f $(CLEAN_STARWELS_QT_TEST) $(qt_test_test_starwels_qt_OBJECTS)