105 lines
2.8 KiB
Makefile
105 lines
2.8 KiB
Makefile
# Copyright (c) 2016-2020 The Zcash developers
|
|
# Distributed under the MIT software license, see the accompanying
|
|
# file COPYING or https://www.opensource.org/licenses/mit-license.php .
|
|
|
|
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 = \
|
|
gtest/main.cpp \
|
|
gtest/utils.cpp \
|
|
gtest/utils.h \
|
|
gtest/test_checktransaction.cpp \
|
|
gtest/test_consensus.cpp \
|
|
gtest/json_test_vectors.cpp \
|
|
gtest/json_test_vectors.h \
|
|
gtest/test_foundersreward.cpp \
|
|
test/data/merkle_roots_orchard.h \
|
|
gtest/data/tx-orchard-duplicate-nullifiers.h \
|
|
gtest/test_tautology.cpp \
|
|
gtest/test_allocator.cpp \
|
|
gtest/test_checkblock.cpp \
|
|
gtest/test_deprecation.cpp \
|
|
gtest/test_dynamicusage.cpp \
|
|
gtest/test_equihash.cpp \
|
|
gtest/test_feature_flagging.cpp \
|
|
gtest/test_history.cpp \
|
|
gtest/test_httprpc.cpp \
|
|
gtest/test_joinsplit.cpp \
|
|
gtest/test_keys.cpp \
|
|
gtest/test_keystore.cpp \
|
|
gtest/test_libzcash_utils.cpp \
|
|
gtest/test_noteencryption.cpp \
|
|
gtest/test_mempool.cpp \
|
|
gtest/test_mempoollimit.cpp \
|
|
gtest/test_merkletree.cpp \
|
|
gtest/test_metrics.cpp \
|
|
gtest/test_miner.cpp \
|
|
gtest/test_pedersen_hash.cpp \
|
|
gtest/test_pow.cpp \
|
|
gtest/test_random.cpp \
|
|
gtest/test_rpc.cpp \
|
|
gtest/test_sapling_note.cpp \
|
|
gtest/test_sighash.cpp \
|
|
gtest/test_timedata.cpp \
|
|
gtest/test_transaction.cpp \
|
|
gtest/test_transaction_builder.cpp \
|
|
gtest/test_transaction_builder.h \
|
|
gtest/test_txid.cpp \
|
|
gtest/test_upgrades.cpp \
|
|
gtest/test_validation.cpp \
|
|
gtest/test_zip32.cpp \
|
|
gtest/test_coins.cpp
|
|
if ENABLE_WALLET
|
|
zcash_gtest_SOURCES += \
|
|
wallet/gtest/test_wallet_zkeys.cpp \
|
|
wallet/gtest/test_orchard_zkeys.cpp \
|
|
wallet/gtest/test_note_selection.cpp \
|
|
wallet/gtest/test_orchard_wallet.cpp \
|
|
wallet/gtest/test_paymentdisclosure.cpp \
|
|
wallet/gtest/test_wallet.cpp \
|
|
wallet/gtest/test_rpc_wallet.cpp
|
|
endif
|
|
|
|
zcash_gtest_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES)
|
|
zcash_gtest_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
|
|
|
|
zcash_gtest_LDADD = \
|
|
-lgtest -lgmock \
|
|
$(LIBBITCOIN_SERVER) \
|
|
$(LIBBITCOIN_CLI) \
|
|
$(LIBBITCOIN_WALLET) \
|
|
$(LIBBITCOIN_COMMON) \
|
|
$(LIBBITCOIN_UTIL) \
|
|
$(LIBBITCOIN_ZMQ) \
|
|
$(LIBBITCOIN_PROTON) \
|
|
$(LIBBITCOIN_CRYPTO) \
|
|
$(LIBUNIVALUE) \
|
|
$(LIBLEVELDB) \
|
|
$(LIBLEVELDB_SSE42) \
|
|
$(LIBMEMENV) \
|
|
$(LIBSECP256K1)
|
|
|
|
zcash_gtest_LDADD += \
|
|
$(LIBZCASH_SCRIPT) \
|
|
$(BOOST_LIBS) \
|
|
$(BOOST_UNIT_TEST_FRAMEWORK_LIB) \
|
|
$(BDB_LIBS) \
|
|
$(EVENT_PTHREADS_LIBS) \
|
|
$(EVENT_LIBS) \
|
|
$(ZMQ_LIBS) \
|
|
$(LIBRUSTZCASH) \
|
|
$(LIBZCASH) \
|
|
$(LIBZCASH_LIBS)
|
|
|
|
zcash_gtest_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(LIBTOOL_APP_LDFLAGS) -static
|
|
|
|
zcash-gtest_check: zcash-gtest FORCE
|
|
./zcash-gtest
|
|
|
|
zcash-gtest-expected-failures: zcash-gtest FORCE
|
|
./zcash-gtest --gtest_filter=*DISABLED_* --gtest_also_run_disabled_tests
|