2020-02-19 16:09:38 -08:00
|
|
|
# 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 .
|
|
|
|
|
2016-05-02 22:14:53 -07:00
|
|
|
TESTS += zcash-gtest
|
2017-01-03 02:23:21 -08:00
|
|
|
noinst_PROGRAMS += zcash-gtest
|
2016-04-18 11:14:30 -07:00
|
|
|
|
2016-11-02 14:45:38 -07:00
|
|
|
# tool for generating our public parameters.
|
|
|
|
# test_checktransaction.cpp MUST be before
|
|
|
|
# any test that calls SelectParams().
|
2016-04-18 11:14:30 -07:00
|
|
|
zcash_gtest_SOURCES = \
|
|
|
|
gtest/main.cpp \
|
2016-10-18 10:44:56 -07:00
|
|
|
gtest/utils.cpp \
|
2018-01-07 07:11:33 -08:00
|
|
|
gtest/utils.h \
|
2016-10-14 13:36:53 -07:00
|
|
|
gtest/test_checktransaction.cpp \
|
2020-02-17 12:55:48 -08:00
|
|
|
gtest/test_consensus.cpp \
|
2016-08-16 13:08:59 -07:00
|
|
|
gtest/json_test_vectors.cpp \
|
2016-11-02 15:43:37 -07:00
|
|
|
gtest/json_test_vectors.h \
|
2022-04-20 19:25:06 -07:00
|
|
|
gtest/test_foundersreward.cpp \
|
2021-09-20 12:15:38 -07:00
|
|
|
test/data/merkle_roots_orchard.h \
|
2022-04-14 09:01:23 -07:00
|
|
|
gtest/data/tx-orchard-duplicate-nullifiers.h \
|
2016-04-13 15:52:24 -07:00
|
|
|
gtest/test_tautology.cpp \
|
2020-09-28 08:20:06 -07:00
|
|
|
gtest/test_allocator.cpp \
|
2020-02-25 08:49:48 -08:00
|
|
|
gtest/test_checkblock.cpp \
|
2017-04-24 23:06:29 -07:00
|
|
|
gtest/test_deprecation.cpp \
|
2019-11-11 15:02:00 -08:00
|
|
|
gtest/test_dynamicusage.cpp \
|
2016-07-20 21:39:32 -07:00
|
|
|
gtest/test_equihash.cpp \
|
2021-03-23 18:36:35 -07:00
|
|
|
gtest/test_feature_flagging.cpp \
|
2019-11-22 00:25:12 -08:00
|
|
|
gtest/test_history.cpp \
|
2017-07-12 14:34:07 -07:00
|
|
|
gtest/test_httprpc.cpp \
|
2016-05-04 17:26:16 -07:00
|
|
|
gtest/test_joinsplit.cpp \
|
2018-08-13 05:20:07 -07:00
|
|
|
gtest/test_keys.cpp \
|
2016-08-08 18:34:58 -07:00
|
|
|
gtest/test_keystore.cpp \
|
2020-02-25 08:49:48 -08:00
|
|
|
gtest/test_libzcash_utils.cpp \
|
2016-04-28 09:04:24 -07:00
|
|
|
gtest/test_noteencryption.cpp \
|
2017-04-13 07:03:29 -07:00
|
|
|
gtest/test_mempool.cpp \
|
2019-09-26 08:22:25 -07:00
|
|
|
gtest/test_mempoollimit.cpp \
|
2016-05-12 12:19:13 -07:00
|
|
|
gtest/test_merkletree.cpp \
|
2016-10-25 13:11:41 -07:00
|
|
|
gtest/test_metrics.cpp \
|
2016-12-22 20:30:27 -08:00
|
|
|
gtest/test_miner.cpp \
|
2020-02-25 08:49:48 -08:00
|
|
|
gtest/test_pedersen_hash.cpp \
|
2016-09-06 04:01:58 -07:00
|
|
|
gtest/test_pow.cpp \
|
2016-10-17 22:20:47 -07:00
|
|
|
gtest/test_random.cpp \
|
2016-08-29 19:42:49 -07:00
|
|
|
gtest/test_rpc.cpp \
|
2018-06-08 15:25:15 -07:00
|
|
|
gtest/test_sapling_note.cpp \
|
2022-02-15 19:06:19 -08:00
|
|
|
gtest/test_sighash.cpp \
|
2020-02-19 16:09:38 -08:00
|
|
|
gtest/test_timedata.cpp \
|
2016-10-18 10:44:56 -07:00
|
|
|
gtest/test_transaction.cpp \
|
2018-07-17 09:36:38 -07:00
|
|
|
gtest/test_transaction_builder.cpp \
|
2022-03-22 17:38:32 -07:00
|
|
|
gtest/test_transaction_builder.h \
|
2016-08-05 22:54:21 -07:00
|
|
|
gtest/test_txid.cpp \
|
2018-01-17 03:42:56 -08:00
|
|
|
gtest/test_upgrades.cpp \
|
2017-06-13 20:33:11 -07:00
|
|
|
gtest/test_validation.cpp \
|
2023-02-03 02:38:25 -08:00
|
|
|
gtest/test_weightedmap.cpp \
|
2022-04-26 14:45:43 -07:00
|
|
|
gtest/test_zip32.cpp \
|
|
|
|
gtest/test_coins.cpp
|
2016-11-17 01:26:46 -08:00
|
|
|
if ENABLE_WALLET
|
|
|
|
zcash_gtest_SOURCES += \
|
2022-04-20 19:25:06 -07:00
|
|
|
wallet/gtest/test_wallet_zkeys.cpp \
|
|
|
|
wallet/gtest/test_orchard_zkeys.cpp \
|
2022-03-11 20:16:42 -08:00
|
|
|
wallet/gtest/test_note_selection.cpp \
|
2022-02-15 11:53:02 -08:00
|
|
|
wallet/gtest/test_orchard_wallet.cpp \
|
2019-03-05 13:04:23 -08:00
|
|
|
wallet/gtest/test_paymentdisclosure.cpp \
|
2022-04-20 20:49:14 -07:00
|
|
|
wallet/gtest/test_wallet.cpp \
|
|
|
|
wallet/gtest/test_rpc_wallet.cpp
|
2016-11-17 01:26:46 -08:00
|
|
|
endif
|
2016-04-18 11:14:30 -07:00
|
|
|
|
2020-02-08 11:48:56 -08:00
|
|
|
zcash_gtest_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES)
|
2017-11-30 06:21:11 -08:00
|
|
|
zcash_gtest_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
|
2016-05-23 08:47:23 -07:00
|
|
|
|
2020-07-17 01:14:39 -07:00
|
|
|
zcash_gtest_LDADD = \
|
|
|
|
-lgtest -lgmock \
|
|
|
|
$(LIBBITCOIN_SERVER) \
|
|
|
|
$(LIBBITCOIN_CLI) \
|
|
|
|
$(LIBBITCOIN_WALLET) \
|
|
|
|
$(LIBBITCOIN_COMMON) \
|
|
|
|
$(LIBBITCOIN_UTIL) \
|
|
|
|
$(LIBBITCOIN_ZMQ) \
|
|
|
|
$(LIBBITCOIN_PROTON) \
|
|
|
|
$(LIBBITCOIN_CRYPTO) \
|
2023-03-30 21:45:10 -07:00
|
|
|
$(LIBCXXBRIDGE) \
|
2020-07-17 01:14:39 -07:00
|
|
|
$(LIBUNIVALUE) \
|
|
|
|
$(LIBLEVELDB) \
|
2017-04-13 10:09:19 -07:00
|
|
|
$(LIBLEVELDB_SSE42) \
|
2020-07-17 01:14:39 -07:00
|
|
|
$(LIBMEMENV) \
|
|
|
|
$(LIBSECP256K1)
|
2017-03-08 16:19:54 -08:00
|
|
|
|
2020-07-17 01:14:39 -07:00
|
|
|
zcash_gtest_LDADD += \
|
2020-08-11 13:56:23 -07:00
|
|
|
$(LIBZCASH_SCRIPT) \
|
2020-07-17 01:14:39 -07:00
|
|
|
$(BOOST_LIBS) \
|
|
|
|
$(BOOST_UNIT_TEST_FRAMEWORK_LIB) \
|
|
|
|
$(BDB_LIBS) \
|
|
|
|
$(EVENT_PTHREADS_LIBS) \
|
|
|
|
$(EVENT_LIBS) \
|
|
|
|
$(ZMQ_LIBS) \
|
|
|
|
$(LIBRUSTZCASH) \
|
2022-07-29 12:30:58 -07:00
|
|
|
$(LIBZCASH) \
|
2020-07-17 01:14:39 -07:00
|
|
|
$(LIBZCASH_LIBS)
|
2017-03-08 16:19:54 -08:00
|
|
|
|
2016-04-13 15:52:24 -07:00
|
|
|
zcash_gtest_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(LIBTOOL_APP_LDFLAGS) -static
|
2016-04-18 11:14:30 -07:00
|
|
|
|
|
|
|
zcash-gtest_check: zcash-gtest FORCE
|
|
|
|
./zcash-gtest
|
2016-09-22 17:32:59 -07:00
|
|
|
|
|
|
|
zcash-gtest-expected-failures: zcash-gtest FORCE
|
|
|
|
./zcash-gtest --gtest_filter=*DISABLED_* --gtest_also_run_disabled_tests
|