Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

Makefile.test.include 3.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. TESTS += test/test_bitcoin
  2. bin_PROGRAMS += test/test_bitcoin
  3. TEST_SRCDIR = test
  4. TEST_BINARY=test/test_bitcoin$(EXEEXT)
  5. EXTRA_DIST += \
  6. test/bctest.py \
  7. test/bitcoin-util-test.py \
  8. test/data/bitcoin-util-test.json \
  9. test/data/blanktx.hex \
  10. test/data/tt-delin1-out.hex \
  11. test/data/tt-delout1-out.hex \
  12. test/data/tt-locktime317000-out.hex \
  13. test/data/tx394b54bb.hex \
  14. test/data/txcreate1.hex \
  15. test/data/txcreate2.hex \
  16. test/data/txcreatesign.hex
  17. JSON_TEST_FILES = \
  18. test/data/script_valid.json \
  19. test/data/base58_keys_valid.json \
  20. test/data/base58_encode_decode.json \
  21. test/data/base58_keys_invalid.json \
  22. test/data/script_invalid.json \
  23. test/data/tx_invalid.json \
  24. test/data/tx_valid.json \
  25. test/data/sighash.json
  26. RAW_TEST_FILES = test/data/alertTests.raw
  27. GENERATED_TEST_FILES = $(JSON_TEST_FILES:.json=.json.h) $(RAW_TEST_FILES:.raw=.raw.h)
  28. BITCOIN_TESTS =\
  29. test/arith_uint256_tests.cpp \
  30. test/bignum.h \
  31. test/alert_tests.cpp \
  32. test/allocator_tests.cpp \
  33. test/base32_tests.cpp \
  34. test/base58_tests.cpp \
  35. test/base64_tests.cpp \
  36. test/bip32_tests.cpp \
  37. test/bloom_tests.cpp \
  38. test/checkblock_tests.cpp \
  39. test/Checkpoints_tests.cpp \
  40. test/coins_tests.cpp \
  41. test/compress_tests.cpp \
  42. test/crypto_tests.cpp \
  43. test/DoS_tests.cpp \
  44. test/getarg_tests.cpp \
  45. test/hash_tests.cpp \
  46. test/key_tests.cpp \
  47. test/main_tests.cpp \
  48. test/mempool_tests.cpp \
  49. test/miner_tests.cpp \
  50. test/mruset_tests.cpp \
  51. test/multisig_tests.cpp \
  52. test/netbase_tests.cpp \
  53. test/pmt_tests.cpp \
  54. test/pow_tests.cpp \
  55. test/rpc_tests.cpp \
  56. test/sanity_tests.cpp \
  57. test/script_P2SH_tests.cpp \
  58. test/script_tests.cpp \
  59. test/scriptnum_tests.cpp \
  60. test/serialize_tests.cpp \
  61. test/sighash_tests.cpp \
  62. test/sigopcount_tests.cpp \
  63. test/skiplist_tests.cpp \
  64. test/test_bitcoin.cpp \
  65. test/test_bitcoin.h \
  66. test/timedata_tests.cpp \
  67. test/transaction_tests.cpp \
  68. test/uint256_tests.cpp \
  69. test/univalue_tests.cpp \
  70. test/util_tests.cpp
  71. if ENABLE_WALLET
  72. BITCOIN_TESTS += \
  73. test/accounting_tests.cpp \
  74. wallet/test/wallet_tests.cpp \
  75. test/rpc_wallet_tests.cpp
  76. endif
  77. test_test_bitcoin_SOURCES = $(BITCOIN_TESTS) $(JSON_TEST_FILES) $(RAW_TEST_FILES)
  78. test_test_bitcoin_CPPFLAGS = $(BITCOIN_INCLUDES) -I$(builddir)/test/ $(TESTDEFS)
  79. test_test_bitcoin_LDADD = $(LIBBITCOIN_SERVER) $(LIBBITCOIN_CLI) $(LIBBITCOIN_COMMON) $(LIBBITCOIN_UTIL) $(LIBBITCOIN_CRYPTO) $(LIBBITCOIN_UNIVALUE) $(LIBLEVELDB) $(LIBMEMENV) \
  80. $(BOOST_LIBS) $(BOOST_UNIT_TEST_FRAMEWORK_LIB) $(LIBSECP256K1)
  81. if ENABLE_WALLET
  82. test_test_bitcoin_LDADD += $(LIBBITCOIN_WALLET)
  83. endif
  84. test_test_bitcoin_LDADD += $(LIBBITCOIN_CONSENSUS) $(BDB_LIBS) $(SSL_LIBS) $(CRYPTO_LIBS) $(MINIUPNPC_LIBS)
  85. test_test_bitcoin_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(LIBTOOL_APP_LDFLAGS) -static
  86. nodist_test_test_bitcoin_SOURCES = $(GENERATED_TEST_FILES)
  87. $(BITCOIN_TESTS): $(GENERATED_TEST_FILES)
  88. CLEAN_BITCOIN_TEST = test/*.gcda test/*.gcno $(GENERATED_TEST_FILES)
  89. CLEANFILES += $(CLEAN_BITCOIN_TEST)
  90. bitcoin_test: $(TEST_BINARY)
  91. bitcoin_test_check: $(TEST_BINARY) FORCE
  92. $(MAKE) check-TESTS TESTS=$^
  93. bitcoin_test_clean : FORCE
  94. rm -f $(CLEAN_BITCOIN_TEST) $(test_test_bitcoin_OBJECTS) $(TEST_BINARY)
  95. check-local:
  96. @echo "Running test/bitcoin-util-test.py..."
  97. $(AM_V_at)srcdir=$(srcdir) PYTHONPATH=$(builddir)/test $(srcdir)/test/bitcoin-util-test.py
  98. $(AM_V_at)$(MAKE) $(AM_MAKEFLAGS) -C secp256k1 check
  99. %.json.h: %.json
  100. @$(MKDIR_P) $(@D)
  101. @echo "namespace json_tests{" > $@
  102. @echo "static unsigned const char $(*F)[] = {" >> $@
  103. @$(HEXDUMP) -v -e '8/1 "0x%02x, "' -e '"\n"' $< | $(SED) -e 's/0x ,//g' >> $@
  104. @echo "};};" >> $@
  105. @echo "Generated $@"
  106. %.raw.h: %.raw
  107. @$(MKDIR_P) $(@D)
  108. @echo "namespace alert_tests{" > $@
  109. @echo "static unsigned const char $(*F)[] = {" >> $@
  110. @$(HEXDUMP) -v -e '8/1 "0x%02x, "' -e '"\n"' $< | $(SED) -e 's/0x ,//g' >> $@
  111. @echo "};};" >> $@
  112. @echo "Generated $@"