-TESTS += zcash-gtest
-noinst_PROGRAMS += zcash-gtest
-# tool for generating our public parameters.
-# test_checktransaction.cpp MUST be before
-# any test that calls SelectParams().
-zcash_gtest_SOURCES = \
+TESTS += komodo-gtest
+bin_PROGRAMS += komodo-gtest
+
+# tool for generating our public parameters
+komodo_gtest_SOURCES = \
gtest/main.cpp \
gtest/utils.cpp \
gtest/test_checktransaction.cpp \
gtest/json_test_vectors.cpp \
- gtest/json_test_vectors.h \
- gtest/test_foundersreward.cpp
+ gtest/json_test_vectors.h \
+ # gtest/test_foundersreward.cpp \
+ gtest/test_wallet_zkeys.cpp \
# These tests are order-dependent, because they
# depend on global state (see #1539)
if ENABLE_WALLET
gtest/test_txid.cpp \
gtest/test_libzcash_utils.cpp \
gtest/test_proofs.cpp \
- gtest/test_paymentdisclosure.cpp \
gtest/test_pedersen_hash.cpp \
- gtest/test_checkblock.cpp
+ gtest/test_checkblock.cpp \
+ gtest/test_zip32.cpp
if ENABLE_WALLET
zcash_gtest_SOURCES += \
+ wallet/gtest/test_paymentdisclosure.cpp \
wallet/gtest/test_wallet.cpp
endif
-zcash_gtest_CPPFLAGS = $(AM_CPPFLAGS) -DBINARY_OUTPUT -DCURVE_ALT_BN128 -DSTATIC $(BITCOIN_INCLUDES)
-zcash_gtest_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
+komodo_gtest_CPPFLAGS = $(AM_CPPFLAGS) -DMULTICORE -fopenmp -DBINARY_OUTPUT -DCURVE_ALT_BN128 -DSTATIC $(BITCOIN_INCLUDES)
+komodo_gtest_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
-zcash_gtest_LDADD = -lgtest -lgmock $(LIBBITCOIN_SERVER) $(LIBBITCOIN_CLI) $(LIBBITCOIN_COMMON) $(LIBBITCOIN_UTIL) $(LIBBITCOIN_CRYPTO) $(LIBUNIVALUE) $(LIBLEVELDB) $(LIBMEMENV) \
+komodo_gtest_LDADD = -lgtest -lgmock $(LIBBITCOIN_SERVER) $(LIBBITCOIN_CLI) $(LIBBITCOIN_COMMON) $(LIBBITCOIN_UTIL) $(LIBBITCOIN_CRYPTO) $(LIBVERUS_CRYPTO) $(LIBBITCOIN_UNIVALUE) $(LIBLEVELDB) $(LIBMEMENV) \
$(BOOST_LIBS) $(BOOST_UNIT_TEST_FRAMEWORK_LIB) $(LIBSECP256K1)
if ENABLE_ZMQ
zcash_gtest_LDADD += $(LIBBITCOIN_ZMQ) $(ZMQ_LIBS)
endif
if ENABLE_WALLET
-zcash_gtest_LDADD += $(LIBBITCOIN_WALLET)
+komodo_gtest_LDADD += $(LIBBITCOIN_WALLET)
endif
-zcash_gtest_LDADD += $(LIBZCASH_CONSENSUS) $(BDB_LIBS) $(SSL_LIBS) $(CRYPTO_LIBS) $(EVENT_PTHREADS_LIBS) $(EVENT_LIBS) $(LIBZCASH) $(LIBSNARK) $(LIBZCASH_LIBS)
+komodo_gtest_LDADD += $(LIBZCASH_CONSENSUS) $(BDB_LIBS) $(SSL_LIBS) $(CRYPTO_LIBS) $(EVENT_PTHREADS_LIBS) $(EVENT_LIBS) $(LIBZCASH) $(LIBSNARK) $(LIBZCASH_LIBS)
if ENABLE_PROTON
-zcash_gtest_LDADD += $(LIBBITCOIN_PROTON) $(PROTON_LIBS)
+komodo_gtest_LDADD += $(LIBBITCOIN_PROTON) $(PROTON_LIBS)
endif
-zcash_gtest_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(LIBTOOL_APP_LDFLAGS) -static
+komodo_gtest_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(LIBTOOL_APP_LDFLAGS) -static
-zcash-gtest_check: zcash-gtest FORCE
- ./zcash-gtest
+komodo_gtest_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(LIBTOOL_APP_LDFLAGS) -static
-zcash-gtest-expected-failures: zcash-gtest FORCE
- ./zcash-gtest --gtest_filter=*DISABLED_* --gtest_also_run_disabled_tests
+komodo-gtest-expected-failures: komodo-gtest FORCE
+ ./komodo-gtest --gtest_filter=*DISABLED_* --gtest_also_run_disabled_tests