2013-05-28 01:55:01 +02:00
|
|
|
include $(top_srcdir)/src/Makefile.include
|
|
|
|
|
2013-09-09 04:02:28 +02:00
|
|
|
AM_CPPFLAGS += -I$(top_srcdir)/src
|
2013-05-28 01:55:01 +02:00
|
|
|
|
|
|
|
bin_PROGRAMS = test_bitcoin
|
|
|
|
|
|
|
|
TESTS = test_bitcoin
|
|
|
|
|
2014-01-11 15:22:07 +01:00
|
|
|
JSON_TEST_FILES = \
|
|
|
|
data/script_valid.json \
|
|
|
|
data/base58_keys_valid.json \
|
|
|
|
data/sig_canonical.json \
|
2013-09-10 21:18:09 +02:00
|
|
|
data/sig_noncanonical.json \
|
|
|
|
data/base58_encode_decode.json \
|
|
|
|
data/base58_keys_invalid.json \
|
2014-01-11 15:22:07 +01:00
|
|
|
data/script_invalid.json \
|
|
|
|
data/tx_invalid.json \
|
2013-09-10 21:18:09 +02:00
|
|
|
data/tx_valid.json
|
2013-05-28 01:55:01 +02:00
|
|
|
|
2013-09-10 21:18:09 +02:00
|
|
|
RAW_TEST_FILES = data/alertTests.raw
|
|
|
|
|
|
|
|
BUILT_SOURCES = $(JSON_TEST_FILES:.json=.json.h) $(RAW_TEST_FILES:.raw=.raw.h)
|
2013-05-28 01:55:01 +02:00
|
|
|
|
|
|
|
# test_bitcoin binary #
|
2013-09-10 21:18:09 +02:00
|
|
|
test_bitcoin_CPPFLAGS = $(AM_CPPFLAGS) $(TESTDEFS)
|
2013-11-27 15:41:12 +01:00
|
|
|
test_bitcoin_LDADD = $(LIBBITCOIN_SERVER) $(LIBBITCOIN_CLI) $(LIBBITCOIN_COMMON) $(LIBLEVELDB) $(LIBMEMENV) \
|
2013-11-29 16:50:11 +01:00
|
|
|
$(BOOST_LIBS) $(BOOST_UNIT_TEST_FRAMEWORK_LIB)
|
|
|
|
if ENABLE_WALLET
|
|
|
|
test_bitcoin_LDADD += $(LIBBITCOIN_WALLET)
|
|
|
|
endif
|
|
|
|
test_bitcoin_LDADD += $(BDB_LIBS)
|
|
|
|
|
2014-01-11 15:22:07 +01:00
|
|
|
test_bitcoin_SOURCES = \
|
|
|
|
alert_tests.cpp \
|
|
|
|
allocator_tests.cpp \
|
|
|
|
base32_tests.cpp \
|
|
|
|
base58_tests.cpp \
|
|
|
|
base64_tests.cpp \
|
|
|
|
bignum_tests.cpp \
|
2014-01-11 18:14:29 +01:00
|
|
|
bloom_tests.cpp \
|
|
|
|
canonical_tests.cpp \
|
2014-01-11 15:22:07 +01:00
|
|
|
checkblock_tests.cpp \
|
|
|
|
Checkpoints_tests.cpp \
|
|
|
|
compress_tests.cpp \
|
|
|
|
DoS_tests.cpp \
|
|
|
|
getarg_tests.cpp \
|
|
|
|
key_tests.cpp \
|
|
|
|
miner_tests.cpp \
|
|
|
|
mruset_tests.cpp \
|
|
|
|
multisig_tests.cpp \
|
|
|
|
netbase_tests.cpp \
|
|
|
|
pmt_tests.cpp \
|
|
|
|
rpc_tests.cpp \
|
|
|
|
script_P2SH_tests.cpp \
|
|
|
|
script_tests.cpp \
|
|
|
|
serialize_tests.cpp \
|
|
|
|
sigopcount_tests.cpp \
|
|
|
|
test_bitcoin.cpp \
|
|
|
|
transaction_tests.cpp \
|
|
|
|
uint256_tests.cpp \
|
|
|
|
util_tests.cpp \
|
|
|
|
sighash_tests.cpp \
|
|
|
|
$(JSON_TEST_FILES) $(RAW_TEST_FILES)
|
2013-11-29 16:50:11 +01:00
|
|
|
|
|
|
|
if ENABLE_WALLET
|
2014-01-11 15:22:07 +01:00
|
|
|
test_bitcoin_SOURCES += \
|
|
|
|
accounting_tests.cpp \
|
|
|
|
wallet_tests.cpp \
|
|
|
|
rpc_wallet_tests.cpp
|
2013-11-29 16:50:11 +01:00
|
|
|
endif
|
2013-09-10 21:18:09 +02:00
|
|
|
|
|
|
|
nodist_test_bitcoin_SOURCES = $(BUILT_SOURCES)
|
2013-05-28 01:55:01 +02:00
|
|
|
|
2013-09-10 21:18:09 +02:00
|
|
|
CLEANFILES = *.gcda *.gcno $(BUILT_SOURCES)
|