]> Git Repo - VerusCoin.git/blame - src/Makefile.test.include
Test
[VerusCoin.git] / src / Makefile.test.include
CommitLineData
be434929 1TESTS += test/test_bitcoin
8e0fc390 2noinst_PROGRAMS += test/test_bitcoin
65e8ba4d
CF
3TEST_SRCDIR = test
4TEST_BINARY=test/test_bitcoin$(EXEEXT)
5
d7893863
JG
6
7EXTRA_DIST += \
8 test/bctest.py \
9 test/bitcoin-util-test.py \
10 test/data/bitcoin-util-test.json \
df4d61e6
JG
11 test/data/blanktx.hex \
12 test/data/tt-delin1-out.hex \
13 test/data/tt-delout1-out.hex \
14 test/data/tt-locktime317000-out.hex \
15 test/data/tx394b54bb.hex \
a65e3207 16 test/data/txcreate1.hex \
2c14d153
ES
17 test/data/txcreate2.hex \
18 test/data/txcreatesign.hex
d7893863 19
65e8ba4d
CF
20JSON_TEST_FILES = \
21 test/data/script_valid.json \
22 test/data/base58_keys_valid.json \
65e8ba4d
CF
23 test/data/base58_encode_decode.json \
24 test/data/base58_keys_invalid.json \
25 test/data/script_invalid.json \
26 test/data/tx_invalid.json \
27 test/data/tx_valid.json \
e1ff849d
SB
28 test/data/sighash.json \
29 test/data/merkle_roots.json \
bf2e3122 30 test/data/merkle_roots_empty.json \
e1ff849d
SB
31 test/data/merkle_serialization.json \
32 test/data/merkle_witness_serialization.json \
f0dab51c 33 test/data/merkle_path.json \
d92bea98 34 test/data/merkle_commitments.json \
f0dab51c
SB
35 test/data/g1_compressed.json \
36 test/data/g2_compressed.json
65e8ba4d
CF
37
38RAW_TEST_FILES = test/data/alertTests.raw
39
40GENERATED_TEST_FILES = $(JSON_TEST_FILES:.json=.json.h) $(RAW_TEST_FILES:.raw=.raw.h)
41
42BITCOIN_TESTS =\
bfc60703 43 test/arith_uint256_tests.cpp \
65e8ba4d 44 test/bignum.h \
8375e1a3 45 test/addrman_tests.cpp \
65e8ba4d
CF
46 test/alert_tests.cpp \
47 test/allocator_tests.cpp \
48 test/base32_tests.cpp \
49 test/base58_tests.cpp \
50 test/base64_tests.cpp \
26414ca4 51 test/bip32_tests.cpp \
65e8ba4d 52 test/bloom_tests.cpp \
65e8ba4d
CF
53 test/checkblock_tests.cpp \
54 test/Checkpoints_tests.cpp \
ed27e53c 55 test/coins_tests.cpp \
771d5002 56 test/compress_tests.cpp \
3820e01e 57 test/crypto_tests.cpp \
65e8ba4d 58 test/DoS_tests.cpp \
020bed60 59 test/equihash_tests.cpp \
65e8ba4d 60 test/getarg_tests.cpp \
977cdade 61 test/hash_tests.cpp \
65e8ba4d
CF
62 test/key_tests.cpp \
63 test/main_tests.cpp \
ad9e86dc 64 test/mempool_tests.cpp \
65e8ba4d
CF
65 test/miner_tests.cpp \
66 test/mruset_tests.cpp \
67 test/multisig_tests.cpp \
68 test/netbase_tests.cpp \
69 test/pmt_tests.cpp \
b649e039 70 test/policyestimator_tests.cpp \
34e5015c 71 test/pow_tests.cpp \
6b51b9b1 72 test/reverselock_tests.cpp \
65e8ba4d 73 test/rpc_tests.cpp \
d58c5d6f 74 test/sanity_tests.cpp \
68d370be 75 test/scheduler_tests.cpp \
65e8ba4d
CF
76 test/script_P2SH_tests.cpp \
77 test/script_tests.cpp \
771d5002 78 test/scriptnum_tests.cpp \
65e8ba4d 79 test/serialize_tests.cpp \
771d5002 80 test/sighash_tests.cpp \
65e8ba4d 81 test/sigopcount_tests.cpp \
236982c2 82 test/skiplist_tests.cpp \
65e8ba4d 83 test/test_bitcoin.cpp \
51598b26 84 test/test_bitcoin.h \
d1e26d4e 85 test/timedata_tests.cpp \
65e8ba4d 86 test/transaction_tests.cpp \
dba2e914 87 test/uint256_tests.cpp \
e85267be 88 test/univalue_tests.cpp \
8466467a 89 test/util_tests.cpp \
6850b45e 90 test/sha256compress_tests.cpp
65e8ba4d
CF
91
92if ENABLE_WALLET
93BITCOIN_TESTS += \
94 test/accounting_tests.cpp \
50c72f23 95 wallet/test/wallet_tests.cpp \
65e8ba4d
CF
96 test/rpc_wallet_tests.cpp
97endif
98
99test_test_bitcoin_SOURCES = $(BITCOIN_TESTS) $(JSON_TEST_FILES) $(RAW_TEST_FILES)
fd7c139e 100test_test_bitcoin_CPPFLAGS = -fopenmp $(BITCOIN_INCLUDES) -I$(builddir)/test/ $(TESTDEFS)
cbe39a38 101test_test_bitcoin_LDADD = $(LIBBITCOIN_SERVER) $(LIBBITCOIN_CLI) $(LIBBITCOIN_COMMON) $(LIBBITCOIN_UTIL) $(LIBBITCOIN_CRYPTO) $(LIBBITCOIN_UNIVALUE) $(LIBLEVELDB) $(LIBMEMENV) \
6850b45e 102 $(BOOST_LIBS) $(BOOST_UNIT_TEST_FRAMEWORK_LIB) $(LIBSECP256K1)
65e8ba4d
CF
103if ENABLE_WALLET
104test_test_bitcoin_LDADD += $(LIBBITCOIN_WALLET)
105endif
55668266 106
08d6b02d 107test_test_bitcoin_LDADD += $(LIBZCASH_CONSENSUS) $(BDB_LIBS) $(SSL_LIBS) $(CRYPTO_LIBS) $(MINIUPNPC_LIBS) $(LIBZCASH) $(LIBZCASH_LIBS)
f6185770 108test_test_bitcoin_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(LIBTOOL_APP_LDFLAGS) -static
65e8ba4d
CF
109
110nodist_test_test_bitcoin_SOURCES = $(GENERATED_TEST_FILES)
111
112$(BITCOIN_TESTS): $(GENERATED_TEST_FILES)
113
114CLEAN_BITCOIN_TEST = test/*.gcda test/*.gcno $(GENERATED_TEST_FILES)
115
116CLEANFILES += $(CLEAN_BITCOIN_TEST)
117
118bitcoin_test: $(TEST_BINARY)
119
120bitcoin_test_check: $(TEST_BINARY) FORCE
121 $(MAKE) check-TESTS TESTS=$^
122
123bitcoin_test_clean : FORCE
124 rm -f $(CLEAN_BITCOIN_TEST) $(test_test_bitcoin_OBJECTS) $(TEST_BINARY)
6b9f0d55 125
4300876c 126check-local:
be434929
CF
127 @echo "Running test/bitcoin-util-test.py..."
128 $(AM_V_at)srcdir=$(srcdir) PYTHONPATH=$(builddir)/test $(srcdir)/test/bitcoin-util-test.py
4300876c
CF
129 $(AM_V_at)$(MAKE) $(AM_MAKEFLAGS) -C secp256k1 check
130
6b9f0d55
CF
131%.json.h: %.json
132 @$(MKDIR_P) $(@D)
133 @echo "namespace json_tests{" > $@
134 @echo "static unsigned const char $(*F)[] = {" >> $@
135 @$(HEXDUMP) -v -e '8/1 "0x%02x, "' -e '"\n"' $< | $(SED) -e 's/0x ,//g' >> $@
136 @echo "};};" >> $@
137 @echo "Generated $@"
138
139%.raw.h: %.raw
140 @$(MKDIR_P) $(@D)
141 @echo "namespace alert_tests{" > $@
142 @echo "static unsigned const char $(*F)[] = {" >> $@
143 @$(HEXDUMP) -v -e '8/1 "0x%02x, "' -e '"\n"' $< | $(SED) -e 's/0x ,//g' >> $@
144 @echo "};};" >> $@
145 @echo "Generated $@"
This page took 0.120127 seconds and 4 git commands to generate.