- Simlink or copy compiled
zebrad
, zcashdand
zcash-clibinaries to
$ zaino/test_binaries/bins/*`
Chain Cache: Several tests rely on a cached chain to run, for these tests to pass the chain must first be generated:
2) Generate the zcashd chain cache cargo nextest run generate_zcashd_chain_cache --run-ignored ignored-only
3) Generate the zebrad chain cache cargo nextest run generate_zebrad_large_chain_cache --run-ignored ignored-only
Client Rpc Tests: For the client rpc tests to pass a Zaino release binary must be built and added to PATH:
4) Build release binary cargo build --release
and add to PATH. WARNING: these tests do not use the binary built by cargo nextest
- Run
$ cargo nextest run
NOTE: The client rpc get_subtree_roots tests are currently ignored, to run them testnet and mainnet chains must first be generated.
- To run client rpc test
get_subtree_roots_sapling
:
- sync Zebrad testnet to at least 2 sapling shards
- copy the Zebrad testnet
state
cache tozaino/integration-tests/chain_cache/get_subtree_roots_sapling
directory. See theget_subtree_roots_sapling
test fixture doc comments in infrastructure for more details.
- To run client rpc test
get_subtree_roots_orchard
:
- sync Zebrad mainnet to at least 2 orchard shards
- copy the Zebrad mainnet
state
cache tozaino/integration-tests/chain_cache/get_subtree_roots_orchard
directory. See theget_subtree_roots_orchard
test fixture doc comments in infrastructure for more details.