Ensure ef_tests run with the right fake_crypto cfg
This commit is contained in:
parent
ae3e459422
commit
f9f6161a7a
@ -51,10 +51,11 @@ impl Doc {
|
|||||||
("bls", "msg_hash_compressed", "mainnet") => {
|
("bls", "msg_hash_compressed", "mainnet") => {
|
||||||
run_test::<BlsG2Compressed, MainnetEthSpec>(self)
|
run_test::<BlsG2Compressed, MainnetEthSpec>(self)
|
||||||
}
|
}
|
||||||
("bls", "msg_hash_uncompressed", "mainnet") => {
|
// Note this test fails due to a difference in our internal representations. It does
|
||||||
// Note this test fails but Not due to a bug
|
// not effect verification or external representation.
|
||||||
vec![] // run_test::<BlsG2Uncompressed, MainnetEthSpec>(&self.yaml)
|
//
|
||||||
}
|
// It is skipped.
|
||||||
|
("bls", "msg_hash_uncompressed", "mainnet") => vec![],
|
||||||
("bls", "priv_to_pub", "mainnet") => run_test::<BlsPrivToPub, MainnetEthSpec>(self),
|
("bls", "priv_to_pub", "mainnet") => run_test::<BlsPrivToPub, MainnetEthSpec>(self),
|
||||||
("bls", "sign_msg", "mainnet") => run_test::<BlsSign, MainnetEthSpec>(self),
|
("bls", "sign_msg", "mainnet") => run_test::<BlsSign, MainnetEthSpec>(self),
|
||||||
(runner, handler, config) => panic!(
|
(runner, handler, config) => panic!(
|
||||||
|
@ -27,6 +27,7 @@ fn yaml_files_in_test_dir(dir: &str) -> Vec<PathBuf> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
#[cfg(feature = "fake_crypto")]
|
||||||
fn ssz_generic() {
|
fn ssz_generic() {
|
||||||
yaml_files_in_test_dir("ssz_generic")
|
yaml_files_in_test_dir("ssz_generic")
|
||||||
.into_par_iter()
|
.into_par_iter()
|
||||||
@ -36,6 +37,7 @@ fn ssz_generic() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
#[cfg(feature = "fake_crypto")]
|
||||||
fn ssz_static() {
|
fn ssz_static() {
|
||||||
yaml_files_in_test_dir("ssz_static")
|
yaml_files_in_test_dir("ssz_static")
|
||||||
.into_par_iter()
|
.into_par_iter()
|
||||||
@ -45,6 +47,7 @@ fn ssz_static() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
#[cfg(not(feature = "fake_crypto"))]
|
||||||
fn bls() {
|
fn bls() {
|
||||||
yaml_files_in_test_dir("bls")
|
yaml_files_in_test_dir("bls")
|
||||||
.into_par_iter()
|
.into_par_iter()
|
||||||
|
Loading…
Reference in New Issue
Block a user