Skip to content

Commit

Permalink
Disable executing some prover unit tests that were previously enabled…
Browse files Browse the repository at this point in the history
… by mistake during feature reshuffling.
  • Loading branch information
evgenyzdanovich committed Dec 24, 2024
1 parent 2108dc5 commit eee2e9c
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 12 deletions.
2 changes: 2 additions & 0 deletions crates/zkvm/adapters/risc0/src/host.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ mod tests {
const TEST_ELF: &[u8] = include_bytes!("../tests/elf/risc0-zkvm-elf");

#[test]
#[ignore]
fn test_mock_prover() {
let input: u32 = 1;
let host = Risc0Host::init(TEST_ELF);
Expand All @@ -133,6 +134,7 @@ mod tests {
}

#[test]
#[ignore]
fn test_mock_prover_with_public_param() {
let input: u32 = 1;
let zkvm = Risc0Host::init(TEST_ELF);
Expand Down
1 change: 1 addition & 0 deletions crates/zkvm/hosts/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ serde.workspace = true
thiserror.workspace = true

[features]
default = []
native = ["strata-native-zkvm-adapter"]
risc0 = ["strata-risc0-adapter/prover", "strata-risc0-guest-builder/prover"]
sp1 = ["strata-sp1-adapter/prover", "strata-sp1-guest-builder/prover"]
1 change: 1 addition & 0 deletions provers/tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,4 @@ sp1 = [
"strata-sp1-guest-builder",
"strata-zkvm-hosts/sp1",
]
test = []
4 changes: 2 additions & 2 deletions provers/tests/src/btc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ mod tests {
}

#[test]
#[cfg(feature = "risc0")]
#[cfg(all(feature = "risc0", feature = "test"))]
fn test_risc0() {
test_proof(crate::TEST_RISC0_GENERATORS.btc_blockspace());
}

#[test]
#[cfg(feature = "sp1")]
#[cfg(all(feature = "sp1", feature = "test"))]
fn test_sp1() {
test_proof(crate::TEST_SP1_GENERATORS.btc_blockspace());
}
Expand Down
4 changes: 2 additions & 2 deletions provers/tests/src/checkpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,13 @@ mod tests {
}

#[test]
#[cfg(feature = "risc0")]
#[cfg(all(feature = "risc0", feature = "test"))]
fn test_risc0() {
test_proof(crate::TEST_RISC0_GENERATORS.checkpoint());
}

#[test]
#[cfg(feature = "sp1")]
#[cfg(all(feature = "sp1", feature = "test"))]
fn test_sp1() {
test_proof(crate::TEST_SP1_GENERATORS.checkpoint());
}
Expand Down
4 changes: 2 additions & 2 deletions provers/tests/src/cl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@ mod tests {
}

#[test]
#[cfg(feature = "risc0")]
#[cfg(all(feature = "risc0", feature = "test"))]
fn test_risc0() {
test_proof(crate::TEST_RISC0_GENERATORS.cl_block());
}

#[test]
#[cfg(feature = "sp1")]
#[cfg(all(feature = "sp1", feature = "test"))]
fn test_sp1() {
test_proof(crate::TEST_SP1_GENERATORS.cl_block());
}
Expand Down
4 changes: 2 additions & 2 deletions provers/tests/src/el.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ mod tests {
}

#[test]
#[cfg(feature = "risc0")]
#[cfg(all(feature = "risc0", feature = "test"))]
fn test_risc0() {
test_proof(crate::TEST_RISC0_GENERATORS.el_block());
}

#[test]
#[cfg(feature = "sp1")]
#[cfg(all(feature = "sp1", feature = "test"))]
fn test_sp1() {
test_proof(crate::TEST_SP1_GENERATORS.el_block());
}
Expand Down
4 changes: 2 additions & 2 deletions provers/tests/src/l1_batch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,13 @@ mod tests {
}

#[test]
#[cfg(feature = "risc0")]
#[cfg(all(feature = "risc0", feature = "test"))]
fn test_risc0() {
test_proof(crate::TEST_RISC0_GENERATORS.l1_batch());
}

#[test]
#[cfg(feature = "sp1")]
#[cfg(all(feature = "sp1", feature = "test"))]
fn test_sp1() {
test_proof(crate::TEST_SP1_GENERATORS.l1_batch());
}
Expand Down
4 changes: 2 additions & 2 deletions provers/tests/src/l2_batch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ mod tests {
}

#[test]
#[cfg(feature = "risc0")]
#[cfg(all(feature = "risc0", feature = "test"))]
fn test_risc0() {
test_proof(crate::TEST_RISC0_GENERATORS.l2_batch());
}

#[test]
#[cfg(feature = "sp1")]
#[cfg(all(feature = "sp1", feature = "test"))]
fn test_sp1() {
test_proof(crate::TEST_SP1_GENERATORS.l2_batch());
}
Expand Down

0 comments on commit eee2e9c

Please sign in to comment.