]> Git Repo - VerusCoin.git/blob - src/Makefile.gtest.include
Remove libsnark from depends system and integrate it into build system.
[VerusCoin.git] / src / Makefile.gtest.include
1 TESTS += zcash-gtest
2 noinst_PROGRAMS += zcash-gtest
3
4 # tool for generating our public parameters.
5 # test_checktransaction.cpp MUST be before
6 # any test that calls SelectParams().
7 zcash_gtest_SOURCES = \
8         gtest/main.cpp \
9         gtest/utils.cpp \
10         gtest/test_checktransaction.cpp \
11         gtest/json_test_vectors.cpp \
12         gtest/json_test_vectors.h \
13         gtest/test_foundersreward.cpp
14 # These tests are order-dependent, because they
15 # depend on global state (see #1539)
16 if ENABLE_WALLET
17 zcash_gtest_SOURCES += \
18         wallet/gtest/test_wallet_zkeys.cpp
19 endif
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 \
26         gtest/test_keystore.cpp \
27         gtest/test_noteencryption.cpp \
28         gtest/test_mempool.cpp \
29         gtest/test_merkletree.cpp \
30         gtest/test_metrics.cpp \
31         gtest/test_miner.cpp \
32         gtest/test_pow.cpp \
33         gtest/test_random.cpp \
34         gtest/test_rpc.cpp \
35         gtest/test_transaction.cpp \
36         gtest/test_validation.cpp \
37         gtest/test_circuit.cpp \
38         gtest/test_txid.cpp \
39         gtest/test_libzcash_utils.cpp \
40         gtest/test_proofs.cpp \
41         gtest/test_checkblock.cpp
42 if ENABLE_WALLET
43 zcash_gtest_SOURCES += \
44         wallet/gtest/test_wallet.cpp
45 endif
46
47 zcash_gtest_CPPFLAGS = -DMULTICORE -fopenmp -DBINARY_OUTPUT -DCURVE_ALT_BN128 -DSTATIC $(BITCOIN_INCLUDES)
48
49 zcash_gtest_LDADD = -lgtest -lgmock $(LIBBITCOIN_SERVER) $(LIBBITCOIN_CLI) $(LIBBITCOIN_COMMON) $(LIBBITCOIN_UTIL) $(LIBBITCOIN_CRYPTO) $(LIBUNIVALUE) $(LIBLEVELDB) $(LIBMEMENV) \
50   $(BOOST_LIBS) $(BOOST_UNIT_TEST_FRAMEWORK_LIB) $(LIBSECP256K1)
51 if ENABLE_ZMQ
52 zcash_gtest_LDADD += $(LIBBITCOIN_ZMQ) $(ZMQ_LIBS)
53 endif
54 if ENABLE_WALLET
55 zcash_gtest_LDADD += $(LIBBITCOIN_WALLET)
56 endif
57
58 zcash_gtest_LDADD += $(LIBZCASH_CONSENSUS) $(BDB_LIBS) $(SSL_LIBS) $(CRYPTO_LIBS) $(EVENT_PTHREADS_LIBS) $(EVENT_LIBS) $(LIBZCASH) $(LIBSNARK) $(LIBZCASH_LIBS)
59
60 if ENABLE_PROTON
61 zcash_gtest_LDADD += $(LIBBITCOIN_PROTON) $(PROTON_LIBS)
62 endif
63
64
65 zcash_gtest_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(LIBTOOL_APP_LDFLAGS) -static
66
67 zcash-gtest_check: zcash-gtest FORCE
68         ./zcash-gtest
69
70 zcash-gtest-expected-failures: zcash-gtest FORCE
71         ./zcash-gtest --gtest_filter=*DISABLED_* --gtest_also_run_disabled_tests
This page took 0.027554 seconds and 4 git commands to generate.