]> Git Repo - VerusCoin.git/blame - src/Makefile.test.include
Remove libsnark from depends system and integrate it into build system.
[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 \
e8b6d84b 72 test/raii_event_tests.cpp \
6b51b9b1 73 test/reverselock_tests.cpp \
65e8ba4d 74 test/rpc_tests.cpp \
d58c5d6f 75 test/sanity_tests.cpp \
68d370be 76 test/scheduler_tests.cpp \
65e8ba4d
CF
77 test/script_P2SH_tests.cpp \
78 test/script_tests.cpp \
771d5002 79 test/scriptnum_tests.cpp \
65e8ba4d 80 test/serialize_tests.cpp \
771d5002 81 test/sighash_tests.cpp \
65e8ba4d 82 test/sigopcount_tests.cpp \
236982c2 83 test/skiplist_tests.cpp \
65e8ba4d 84 test/test_bitcoin.cpp \
51598b26 85 test/test_bitcoin.h \
d1e26d4e 86 test/timedata_tests.cpp \
6dbd95af 87 test/torcontrol_tests.cpp \
65e8ba4d 88 test/transaction_tests.cpp \
dba2e914 89 test/uint256_tests.cpp \
e85267be 90 test/univalue_tests.cpp \
8466467a 91 test/util_tests.cpp \
6850b45e 92 test/sha256compress_tests.cpp
65e8ba4d
CF
93
94if ENABLE_WALLET
95BITCOIN_TESTS += \
96 test/accounting_tests.cpp \
50c72f23 97 wallet/test/wallet_tests.cpp \
65e8ba4d
CF
98 test/rpc_wallet_tests.cpp
99endif
100
101test_test_bitcoin_SOURCES = $(BITCOIN_TESTS) $(JSON_TEST_FILES) $(RAW_TEST_FILES)
ca50af75 102test_test_bitcoin_CPPFLAGS = -fopenmp $(BITCOIN_INCLUDES) -I$(builddir)/test/ $(TESTDEFS) $(EVENT_CFLAGS)
a10a6e2a 103test_test_bitcoin_LDADD = $(LIBBITCOIN_SERVER) $(LIBBITCOIN_CLI) $(LIBBITCOIN_COMMON) $(LIBBITCOIN_UTIL) $(LIBBITCOIN_CRYPTO) $(LIBUNIVALUE) $(LIBLEVELDB) $(LIBMEMENV) \
6dbd95af 104 $(BOOST_LIBS) $(BOOST_UNIT_TEST_FRAMEWORK_LIB) $(LIBSECP256K1) $(EVENT_PTHREADS_LIBS) $(EVENT_LIBS)
65e8ba4d
CF
105if ENABLE_WALLET
106test_test_bitcoin_LDADD += $(LIBBITCOIN_WALLET)
107endif
55668266 108
26a8f68e 109test_test_bitcoin_LDADD += $(LIBZCASH_CONSENSUS) $(BDB_LIBS) $(SSL_LIBS) $(CRYPTO_LIBS) $(LIBZCASH) $(LIBSNARK) $(LIBZCASH_LIBS)
f6185770 110test_test_bitcoin_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(LIBTOOL_APP_LDFLAGS) -static
65e8ba4d 111
f200002c
JG
112if ENABLE_ZMQ
113test_test_bitcoin_LDADD += $(ZMQ_LIBS)
114endif
115
99eb947a
S
116if ENABLE_PROTON
117test_test_bitcoin_LDADD += $(PROTON_LIBS)
118endif
119
65e8ba4d
CF
120nodist_test_test_bitcoin_SOURCES = $(GENERATED_TEST_FILES)
121
122$(BITCOIN_TESTS): $(GENERATED_TEST_FILES)
123
124CLEAN_BITCOIN_TEST = test/*.gcda test/*.gcno $(GENERATED_TEST_FILES)
125
126CLEANFILES += $(CLEAN_BITCOIN_TEST)
127
128bitcoin_test: $(TEST_BINARY)
129
130bitcoin_test_check: $(TEST_BINARY) FORCE
131 $(MAKE) check-TESTS TESTS=$^
132
133bitcoin_test_clean : FORCE
134 rm -f $(CLEAN_BITCOIN_TEST) $(test_test_bitcoin_OBJECTS) $(TEST_BINARY)
6b9f0d55 135
4300876c 136check-local:
be434929
CF
137 @echo "Running test/bitcoin-util-test.py..."
138 $(AM_V_at)srcdir=$(srcdir) PYTHONPATH=$(builddir)/test $(srcdir)/test/bitcoin-util-test.py
4300876c 139 $(AM_V_at)$(MAKE) $(AM_MAKEFLAGS) -C secp256k1 check
a10a6e2a 140 $(AM_V_at)$(MAKE) $(AM_MAKEFLAGS) -C univalue check
4300876c 141
6b9f0d55
CF
142%.json.h: %.json
143 @$(MKDIR_P) $(@D)
144 @echo "namespace json_tests{" > $@
145 @echo "static unsigned const char $(*F)[] = {" >> $@
146 @$(HEXDUMP) -v -e '8/1 "0x%02x, "' -e '"\n"' $< | $(SED) -e 's/0x ,//g' >> $@
147 @echo "};};" >> $@
148 @echo "Generated $@"
149
150%.raw.h: %.raw
151 @$(MKDIR_P) $(@D)
152 @echo "namespace alert_tests{" > $@
153 @echo "static unsigned const char $(*F)[] = {" >> $@
154 @$(HEXDUMP) -v -e '8/1 "0x%02x, "' -e '"\n"' $< | $(SED) -e 's/0x ,//g' >> $@
155 @echo "};};" >> $@
156 @echo "Generated $@"
This page took 0.119742 seconds and 4 git commands to generate.