]>
Commit | Line | Data |
---|---|---|
3ab0c1a7 | 1 | |
5166804f | 2 | TESTS += komodo-gtest |
3 | bin_PROGRAMS += komodo-gtest | |
3ab0c1a7 NW |
4 | |
5 | # tool for generating our public parameters | |
5166804f | 6 | komodo_gtest_SOURCES = \ |
3ab0c1a7 | 7 | gtest/main.cpp \ |
3774c944 | 8 | gtest/utils.cpp \ |
b13a87c6 | 9 | gtest/test_checktransaction.cpp \ |
f0dab51c | 10 | gtest/json_test_vectors.cpp \ |
b2ba9d64 | 11 | gtest/json_test_vectors.h \ |
679496c3 | 12 | # gtest/test_foundersreward.cpp \ |
b13a87c6 | 13 | gtest/test_wallet_zkeys.cpp \ |
5ae34782 JG |
14 | # These tests are order-dependent, because they |
15 | # depend on global state (see #1539) | |
16 | if ENABLE_WALLET | |
17 | zcash_gtest_SOURCES += \ | |
18 | wallet/gtest/test_wallet_zkeys.cpp | |
19 | endif | |
20 | zcash_gtest_SOURCES += \ | |
6ad4db22 | 21 | gtest/test_tautology.cpp \ |
5b3bc971 | 22 | gtest/test_deprecation.cpp \ |
5b4ebcd5 | 23 | gtest/test_equihash.cpp \ |
689264bb | 24 | gtest/test_httprpc.cpp \ |
5a2db9e2 | 25 | gtest/test_joinsplit.cpp \ |
e7ca4eb3 | 26 | gtest/test_keys.cpp \ |
7c929cf5 | 27 | gtest/test_keystore.cpp \ |
0000d231 | 28 | gtest/test_noteencryption.cpp \ |
4d4a7cd5 | 29 | gtest/test_mempool.cpp \ |
81469bbb | 30 | gtest/test_merkletree.cpp \ |
000499ae | 31 | gtest/test_metrics.cpp \ |
8e8b6d70 | 32 | gtest/test_miner.cpp \ |
5fbb839f | 33 | gtest/test_pow.cpp \ |
0382417f | 34 | gtest/test_random.cpp \ |
3e3da44c | 35 | gtest/test_rpc.cpp \ |
36e2e7cc | 36 | gtest/test_sapling_note.cpp \ |
3774c944 | 37 | gtest/test_transaction.cpp \ |
e691e21f | 38 | gtest/test_transaction_builder.cpp \ |
f52da911 | 39 | gtest/test_upgrades.cpp \ |
1b786a93 | 40 | gtest/test_validation.cpp \ |
2668a1bc | 41 | gtest/test_circuit.cpp \ |
2a7fde3f | 42 | gtest/test_txid.cpp \ |
f0dab51c | 43 | gtest/test_libzcash_utils.cpp \ |
02e67455 | 44 | gtest/test_proofs.cpp \ |
395bcd36 | 45 | gtest/test_pedersen_hash.cpp \ |
7614198f JG |
46 | gtest/test_checkblock.cpp \ |
47 | gtest/test_zip32.cpp | |
0bb3d40f JG |
48 | if ENABLE_WALLET |
49 | zcash_gtest_SOURCES += \ | |
1fee1502 | 50 | wallet/gtest/test_paymentdisclosure.cpp \ |
02e67455 | 51 | wallet/gtest/test_wallet.cpp |
0bb3d40f | 52 | endif |
3ab0c1a7 | 53 | |
9000990c | 54 | komodo_gtest_CPPFLAGS = $(AM_CPPFLAGS) -DMULTICORE -fopenmp -DBINARY_OUTPUT -DCURVE_ALT_BN128 -DSTATIC $(BITCOIN_INCLUDES) |
55 | komodo_gtest_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS) | |
9285bba8 | 56 | |
42181656 | 57 | komodo_gtest_LDADD = -lgtest -lgmock $(LIBBITCOIN_SERVER) $(LIBBITCOIN_CLI) $(LIBBITCOIN_COMMON) $(LIBBITCOIN_UTIL) $(LIBBITCOIN_CRYPTO) $(LIBVERUS_CRYPTO) $(LIBBITCOIN_UNIVALUE) $(LIBLEVELDB) $(LIBMEMENV) \ |
6ad4db22 | 58 | $(BOOST_LIBS) $(BOOST_UNIT_TEST_FRAMEWORK_LIB) $(LIBSECP256K1) |
8b99caa3 JG |
59 | if ENABLE_ZMQ |
60 | zcash_gtest_LDADD += $(LIBBITCOIN_ZMQ) $(ZMQ_LIBS) | |
61 | endif | |
6ad4db22 | 62 | if ENABLE_WALLET |
5166804f | 63 | komodo_gtest_LDADD += $(LIBBITCOIN_WALLET) |
6ad4db22 TH |
64 | endif |
65 | ||
9000990c | 66 | komodo_gtest_LDADD += $(LIBZCASH_CONSENSUS) $(BDB_LIBS) $(SSL_LIBS) $(CRYPTO_LIBS) $(EVENT_PTHREADS_LIBS) $(EVENT_LIBS) $(LIBZCASH) $(LIBSNARK) $(LIBZCASH_LIBS) |
6ad4db22 | 67 | |
99eb947a | 68 | if ENABLE_PROTON |
9000990c | 69 | komodo_gtest_LDADD += $(LIBBITCOIN_PROTON) $(PROTON_LIBS) |
99eb947a S |
70 | endif |
71 | ||
72 | ||
9000990c | 73 | komodo_gtest_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(LIBTOOL_APP_LDFLAGS) -static |
6ad4db22 | 74 | |
5166804f | 75 | komodo_gtest_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(LIBTOOL_APP_LDFLAGS) -static |
3ab0c1a7 | 76 | |
3a672e7b | 77 | komodo-gtest-expected-failures: komodo-gtest FORCE |
78 | ./komodo-gtest --gtest_filter=*DISABLED_* --gtest_also_run_disabled_tests |