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.

Makefile.qttest.include 2.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. # Copyright (c) 2013-2016 The Starwels developers
  2. # Distributed under the MIT software license, see the accompanying
  3. # file COPYING or http://www.opensource.org/licenses/mit-license.php.
  4. bin_PROGRAMS += qt/test/test_starwels-qt
  5. TESTS += qt/test/test_starwels-qt
  6. TEST_QT_MOC_CPP = \
  7. qt/test/moc_compattests.cpp \
  8. qt/test/moc_rpcnestedtests.cpp \
  9. qt/test/moc_uritests.cpp
  10. if ENABLE_WALLET
  11. TEST_QT_MOC_CPP += \
  12. qt/test/moc_paymentservertests.cpp \
  13. qt/test/moc_wallettests.cpp
  14. endif
  15. TEST_QT_H = \
  16. qt/test/compattests.h \
  17. qt/test/rpcnestedtests.h \
  18. qt/test/uritests.h \
  19. qt/test/paymentrequestdata.h \
  20. qt/test/paymentservertests.h \
  21. qt/test/wallettests.h
  22. TEST_STARWELS_CPP = \
  23. test/test_starwels.cpp
  24. TEST_STARWELS_H = \
  25. test/test_starwels.h
  26. qt_test_test_starwels_qt_CPPFLAGS = $(AM_CPPFLAGS) $(STARWELS_INCLUDES) $(STARWELS_QT_INCLUDES) \
  27. $(QT_INCLUDES) $(QT_TEST_INCLUDES) $(PROTOBUF_CFLAGS)
  28. qt_test_test_starwels_qt_SOURCES = \
  29. qt/test/compattests.cpp \
  30. qt/test/rpcnestedtests.cpp \
  31. qt/test/test_main.cpp \
  32. qt/test/uritests.cpp \
  33. $(TEST_QT_H) \
  34. $(TEST_STARWELS_CPP) \
  35. $(TEST_STARWELS_H)
  36. if ENABLE_WALLET
  37. qt_test_test_starwels_qt_SOURCES += \
  38. qt/test/paymentservertests.cpp \
  39. qt/test/wallettests.cpp \
  40. wallet/test/wallet_test_fixture.cpp
  41. endif
  42. nodist_qt_test_test_starwels_qt_SOURCES = $(TEST_QT_MOC_CPP)
  43. qt_test_test_starwels_qt_LDADD = $(LIBSTARWELSQT) $(LIBSTARWELS_SERVER)
  44. if ENABLE_WALLET
  45. qt_test_test_starwels_qt_LDADD += $(LIBSTARWELS_WALLET)
  46. endif
  47. if ENABLE_ZMQ
  48. qt_test_test_starwels_qt_LDADD += $(LIBSTARWELS_ZMQ) $(ZMQ_LIBS)
  49. endif
  50. qt_test_test_starwels_qt_LDADD += $(LIBSTARWELS_CLI) $(LIBSTARWELS_COMMON) $(LIBSTARWELS_UTIL) $(LIBSTARWELS_CONSENSUS) $(LIBSTARWELS_CRYPTO) $(LIBUNIVALUE) $(LIBLEVELDB) \
  51. $(LIBLEVELDB_SSE42) $(LIBMEMENV) $(BOOST_LIBS) $(QT_DBUS_LIBS) $(QT_TEST_LIBS) $(QT_LIBS) \
  52. $(QR_LIBS) $(PROTOBUF_LIBS) $(BDB_LIBS) $(SSL_LIBS) $(CRYPTO_LIBS) $(MINIUPNPC_LIBS) $(LIBSECP256K1) \
  53. $(EVENT_PTHREADS_LIBS) $(EVENT_LIBS)
  54. qt_test_test_starwels_qt_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(QT_LDFLAGS) $(LIBTOOL_APP_LDFLAGS)
  55. qt_test_test_starwels_qt_CXXFLAGS = $(AM_CXXFLAGS) $(QT_PIE_FLAGS)
  56. CLEAN_STARWELS_QT_TEST = $(TEST_QT_MOC_CPP) qt/test/*.gcda qt/test/*.gcno
  57. CLEANFILES += $(CLEAN_STARWELS_QT_TEST)
  58. test_starwels_qt : qt/test/test_starwels-qt$(EXEEXT)
  59. test_starwels_qt_check : qt/test/test_starwels-qt$(EXEEXT) FORCE
  60. $(MAKE) check-TESTS TESTS=$^
  61. test_starwels_qt_clean: FORCE
  62. rm -f $(CLEAN_STARWELS_QT_TEST) $(qt_test_test_starwels_qt_OBJECTS)