Ensure ef_tests run with the right fake_crypto cfg

This commit is contained in:
Paul Hauner 2019-05-22 14:18:48 +10:00
parent ae3e459422
commit f9f6161a7a
No known key found for this signature in database
GPG Key ID: 5E2CFF9B75FA63DF
2 changed files with 8 additions and 4 deletions

View File

@ -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!(

View File

@ -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()