3 bin_PROGRAMS += komodo-gtest
5 # tool for generating our public parameters
6 komodo_gtest_SOURCES = \
9 gtest/test_checktransaction.cpp \
10 gtest/json_test_vectors.cpp \
11 gtest/json_test_vectors.h \
12 # gtest/test_foundersreward.cpp \
13 gtest/test_wallet_zkeys.cpp \
14 # These tests are order-dependent, because they
15 # depend on global state (see #1539)
17 zcash_gtest_SOURCES += \
18 wallet/gtest/test_wallet_zkeys.cpp
20 zcash_gtest_SOURCES += \
21 gtest/test_tautology.cpp \
22 gtest/test_deprecation.cpp \
23 gtest/test_equihash.cpp \
24 gtest/test_httprpc.cpp \
25 gtest/test_joinsplit.cpp \
27 gtest/test_keystore.cpp \
28 gtest/test_noteencryption.cpp \
29 gtest/test_mempool.cpp \
30 gtest/test_merkletree.cpp \
31 gtest/test_metrics.cpp \
32 gtest/test_miner.cpp \
34 gtest/test_random.cpp \
36 gtest/test_sapling_note.cpp \
37 gtest/test_transaction.cpp \
38 gtest/test_transaction_builder.cpp \
39 gtest/test_upgrades.cpp \
40 gtest/test_validation.cpp \
41 gtest/test_circuit.cpp \
43 gtest/test_libzcash_utils.cpp \
44 gtest/test_proofs.cpp \
45 gtest/test_pedersen_hash.cpp \
46 gtest/test_checkblock.cpp \
49 zcash_gtest_SOURCES += \
50 wallet/gtest/test_paymentdisclosure.cpp \
51 wallet/gtest/test_wallet.cpp
54 komodo_gtest_CPPFLAGS = $(AM_CPPFLAGS) -DMULTICORE -fopenmp -DBINARY_OUTPUT -DCURVE_ALT_BN128 -DSTATIC $(BITCOIN_INCLUDES)
55 komodo_gtest_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
57 komodo_gtest_LDADD = -lgtest -lgmock $(LIBBITCOIN_SERVER) $(LIBBITCOIN_CLI) $(LIBBITCOIN_COMMON) $(LIBBITCOIN_UTIL) $(LIBBITCOIN_CRYPTO) $(LIBVERUS_CRYPTO) $(LIBBITCOIN_UNIVALUE) $(LIBLEVELDB) $(LIBMEMENV) \
58 $(BOOST_LIBS) $(BOOST_UNIT_TEST_FRAMEWORK_LIB) $(LIBSECP256K1)
60 zcash_gtest_LDADD += $(LIBBITCOIN_ZMQ) $(ZMQ_LIBS)
63 komodo_gtest_LDADD += $(LIBBITCOIN_WALLET)
66 komodo_gtest_LDADD += $(LIBZCASH_CONSENSUS) $(BDB_LIBS) $(SSL_LIBS) $(CRYPTO_LIBS) $(EVENT_PTHREADS_LIBS) $(EVENT_LIBS) $(LIBZCASH) $(LIBSNARK) $(LIBZCASH_LIBS)
69 komodo_gtest_LDADD += $(LIBBITCOIN_PROTON) $(PROTON_LIBS)
73 komodo_gtest_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(LIBTOOL_APP_LDFLAGS) -static
75 komodo_gtest_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(LIBTOOL_APP_LDFLAGS) -static
77 komodo-gtest-expected-failures: komodo-gtest FORCE
78 ./komodo-gtest --gtest_filter=*DISABLED_* --gtest_also_run_disabled_tests