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") => {
run_test::<BlsG2Compressed, MainnetEthSpec>(self)
}
("bls", "msg_hash_uncompressed", "mainnet") => {
// Note this test fails but Not due to a bug
vec![] // run_test::<BlsG2Uncompressed, MainnetEthSpec>(&self.yaml)
}
// Note this test fails due to a difference in our internal representations. It does
// not effect verification or external representation.
//
// It is skipped.
("bls", "msg_hash_uncompressed", "mainnet") => vec![],
("bls", "priv_to_pub", "mainnet") => run_test::<BlsPrivToPub, MainnetEthSpec>(self),
("bls", "sign_msg", "mainnet") => run_test::<BlsSign, MainnetEthSpec>(self),
(runner, handler, config) => panic!(

View File

@ -27,6 +27,7 @@ fn yaml_files_in_test_dir(dir: &str) -> Vec<PathBuf> {
}
#[test]
#[cfg(feature = "fake_crypto")]
fn ssz_generic() {
yaml_files_in_test_dir("ssz_generic")
.into_par_iter()
@ -36,6 +37,7 @@ fn ssz_generic() {
}
#[test]
#[cfg(feature = "fake_crypto")]
fn ssz_static() {
yaml_files_in_test_dir("ssz_static")
.into_par_iter()
@ -45,6 +47,7 @@ fn ssz_static() {
}
#[test]
#[cfg(not(feature = "fake_crypto"))]
fn bls() {
yaml_files_in_test_dir("bls")
.into_par_iter()