From 7c70e42de9adffb7c99fc7064a2ec35227ed940b Mon Sep 17 00:00:00 2001 From: hrxi Date: Mon, 29 Jan 2024 15:26:02 +0100 Subject: [PATCH] Mark two long-running zkp-circuits tests as expensive --- zkp-circuits/Cargo.toml | 1 + zkp-circuits/src/circuits/vk_commitments.rs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/zkp-circuits/Cargo.toml b/zkp-circuits/Cargo.toml index 13317b00cf..eace2dfea6 100644 --- a/zkp-circuits/Cargo.toml +++ b/zkp-circuits/Cargo.toml @@ -67,6 +67,7 @@ nimiq-transaction = { workspace = true } [features] cli = ["tracing-subscriber", "nimiq-log"] +expensive-tests = [] zkp-prover = [ "ark-crypto-primitives/r1cs", "ark-mnt4-753/r1cs", diff --git a/zkp-circuits/src/circuits/vk_commitments.rs b/zkp-circuits/src/circuits/vk_commitments.rs index 66c1f457f0..d04e6af4e4 100644 --- a/zkp-circuits/src/circuits/vk_commitments.rs +++ b/zkp-circuits/src/circuits/vk_commitments.rs @@ -423,6 +423,7 @@ mod tests { } #[test] + #[cfg_attr(not(feature = "expensive-tests"), ignore)] fn vks_mnt6() { // Initialize the constraint system. let cs = ConstraintSystem::::new_ref(); @@ -503,6 +504,7 @@ mod tests { } #[test] + #[cfg_attr(not(feature = "expensive-tests"), ignore)] fn vks_mnt4() { // Initialize the constraint system. let cs = ConstraintSystem::::new_ref();