2 bin_PROGRAMS += zcash-gtest
4 # tool for generating our public parameters
5 zcash_gtest_SOURCES = \
7 gtest/json_test_vectors.cpp \
8 gtest/test_foundersreward.cpp \
9 gtest/test_jsonspirit.cpp \
10 gtest/test_tautology.cpp \
11 gtest/test_checktransaction.cpp \
12 gtest/test_equihash.cpp \
13 gtest/test_joinsplit.cpp \
14 gtest/test_keystore.cpp \
15 gtest/test_noteencryption.cpp \
16 gtest/test_merkletree.cpp \
19 gtest/test_circuit.cpp \
21 gtest/test_wallet_zkeys.cpp \
22 gtest/test_libzcash_utils.cpp \
23 gtest/test_proofs.cpp \
24 wallet/gtest/test_wallet.cpp
26 zcash_gtest_CPPFLAGS = -DMULTICORE -fopenmp -DBINARY_OUTPUT -DCURVE_ALT_BN128 -DSTATIC
28 zcash_gtest_LDADD = -lgtest -lgmock $(LIBBITCOIN_SERVER) $(LIBBITCOIN_CLI) $(LIBBITCOIN_COMMON) $(LIBBITCOIN_UTIL) $(LIBBITCOIN_CRYPTO) $(LIBBITCOIN_UNIVALUE) $(LIBLEVELDB) $(LIBMEMENV) \
29 $(BOOST_LIBS) $(BOOST_UNIT_TEST_FRAMEWORK_LIB) $(LIBSECP256K1)
31 zcash_gtest_LDADD += $(LIBBITCOIN_WALLET)
34 zcash_gtest_LDADD += $(LIBBITCOIN_CONSENSUS) $(BDB_LIBS) $(SSL_LIBS) $(CRYPTO_LIBS) $(MINIUPNPC_LIBS) $(LIBZCASH) $(LIBZCASH_LIBS)
36 zcash_gtest_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(LIBTOOL_APP_LDFLAGS) -static
38 zcash-gtest_check: zcash-gtest FORCE
41 zcash-gtest-expected-failures: zcash-gtest FORCE
42 ./zcash-gtest --gtest_filter=*DISABLED_* --gtest_also_run_disabled_tests