Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore manual tests #53

Merged
merged 3 commits into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,28 +33,6 @@
//!
//! Pre-requisities for running integration tests successfully:
//! - Build the Zcashd, Zebrad, Zainod and Lightwalletd binaries and add to $PATH.
//! - In order to generate a cached blockchain from zebrad run:
//! ```BASH
//! ./utils/compare_chain_caches.sh
//! ```
//! This command generates new data in the `chain_cache` directory. The new structure should have the following added
//!
//! ```BASH
//! ├── [ 4096] client_rpc_tests_large
//! └── [ 4096] state
//! └── [ 4096] v26
//! └── [ 4096] regtest
//! ├── [ 139458] 000004.log
//! ├── [ 16] CURRENT
//! ├── [ 36] IDENTITY
//! ├── [ 0] LOCK
//! ├── [ 174621] LOG
//! ├── [ 1708] MANIFEST-000005
//! ├── [ 114923] OPTIONS-000007
//! └── [ 3] version
//! ```
//! - To run the `get_subtree_roots_sapling` test, sync Zebrad in testnet mode and copy the cache to `zcash_local_net/chain_cache/testnet_get_subtree_roots_sapling`. At least 2 sapling shards must be synced to pass. See [crate::test_fixtures::get_subtree_roots_sapling] doc comments for more details.
//! - To run the `get_subtree_roots_orchard` test, sync Zebrad in mainnet mode and copy the cache to `zcash_local_net/chain_cache/testnet_get_subtree_roots_orchard`. At least 2 orchard shards must be synced to pass. See [crate::test_fixtures::get_subtree_roots_orchard] doc comments for more details.
//!
//! See [crate::test_fixtures] doc comments for running client rpc tests from external crates for indexer/validator development.
//!
Expand Down
86 changes: 56 additions & 30 deletions tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -791,36 +791,6 @@ mod client_rpcs {
.await;
}

/// This test requires Zebrad testnet to be already synced to at least 2 sapling shards with the cache at
/// `zcash_local_net/chain_cache/get_subtree_roots_sapling`
#[tokio::test]
async fn get_subtree_roots_sapling() {
tracing_subscriber::fmt().init();

zcash_local_net::test_fixtures::get_subtree_roots_sapling(
ZEBRAD_BIN,
ZAINOD_BIN,
LIGHTWALLETD_BIN,
Network::Testnet,
)
.await;
}

/// This test requires Zebrad mainnet to be already synced to at least 2 sapling shards with the cache at
/// `zcash_local_net/chain_cache/get_subtree_roots_orchard`
#[tokio::test]
async fn get_subtree_roots_orchard() {
tracing_subscriber::fmt().init();

zcash_local_net::test_fixtures::get_subtree_roots_orchard(
ZEBRAD_BIN,
ZAINOD_BIN,
LIGHTWALLETD_BIN,
Network::Mainnet,
)
.await;
}

#[tokio::test]
async fn get_address_utxos_all() {
tracing_subscriber::fmt().init();
Expand Down Expand Up @@ -924,4 +894,60 @@ mod client_rpcs {
)
.await;
}
mod get_subtree_roots {
//! - In order to generate a cached blockchain from zebrad run:
//! ```BASH
//! ./utils/compare_chain_caches.sh
//! ```
//! This command generates new data in the `chain_cache` directory. The new structure should have the following added
//!
//! ```BASH
//! ├── [ 4096] client_rpc_tests_large
//! └── [ 4096] state
//! └── [ 4096] v26
//! └── [ 4096] regtest
//! ├── [ 139458] 000004.log
//! ├── [ 16] CURRENT
//! ├── [ 36] IDENTITY
//! ├── [ 0] LOCK
//! ├── [ 174621] LOG
//! ├── [ 1708] MANIFEST-000005
//! ├── [ 114923] OPTIONS-000007
//! └── [ 3] version
//! ```
//! - To run the `get_subtree_roots_sapling` test, sync Zebrad in testnet mode and copy the cache to `zcash_local_net/chain_cache/testnet_get_subtree_roots_sapling`. At least 2 sapling shards must be synced to pass. See [crate::test_fixtures::get_subtree_roots_sapling] doc comments for more details.
//! - To run the `get_subtree_roots_orchard` test, sync Zebrad in mainnet mode and copy the cache to `zcash_local_net/chain_cache/testnet_get_subtree_roots_orchard`. At least 2 orchard shards must be synced to pass. See [crate::test_fixtures::get_subtree_roots_orchard] doc comments for more details.
use super::*;
/// This test requires Zebrad testnet to be already synced to at least 2 sapling shards with the cache at
/// `zcash_local_net/chain_cache/get_subtree_roots_sapling`
#[ignore = "this test requires manual setup"]
ala-mode marked this conversation as resolved.
Show resolved Hide resolved
#[tokio::test]
async fn sapling() {
tracing_subscriber::fmt().init();

zcash_local_net::test_fixtures::get_subtree_roots_sapling(
ZEBRAD_BIN,
ZAINOD_BIN,
LIGHTWALLETD_BIN,
Network::Testnet,
)
.await;
}

/// This test requires Zebrad mainnet to be already synced to at least 2 sapling shards with the cache at
/// `zcash_local_net/chain_cache/get_subtree_roots_orchard`
#[ignore = "this test requires manual setup"]
ala-mode marked this conversation as resolved.
Show resolved Hide resolved
#[tokio::test]
async fn orchard() {
tracing_subscriber::fmt().init();

zcash_local_net::test_fixtures::get_subtree_roots_orchard(
ZEBRAD_BIN,
ZAINOD_BIN,
LIGHTWALLETD_BIN,
Network::Mainnet,
)
.await;
}
}
}