Skip to content

Commit bb0468e

Browse files
authored
wycheproof: add git submodule update --init to error message (#585)
It's otherwise unclear what needs to be done to address these errors in the event the wycheproof submodule has not been initialized
1 parent 62e4ced commit bb0468e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/wycheproof.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,9 @@ impl Drop for Summary {
149149
// #[case("rsa_signature_8192_sha512_test.json")] TODO: needs disabling of maxsize
150150
fn test_rsa_pkcs1_verify(#[case] file: &str) {
151151
let path = format!("thirdparty/wycheproof/testvectors_v1/{file}");
152-
let data_file = File::open(&path).expect("failed to open data file");
152+
let data_file = File::open(&path)
153+
.expect("failed to open data file (try running `git submodule update --init`)");
154+
153155
println!("Loading file: {path}");
154156

155157
let tests: TestFile = serde_json::from_reader(data_file).expect("invalid test JSON");
@@ -203,7 +205,9 @@ fn test_rsa_pkcs1_verify(#[case] file: &str) {
203205
#[case("rsa_pss_misc_test.json")]
204206
fn test_rsa_pss_verify(#[case] file: &str) {
205207
let path = format!("thirdparty/wycheproof/testvectors_v1/{file}");
206-
let data_file = File::open(&path).expect("failed to open data file");
208+
let data_file = File::open(&path)
209+
.expect("failed to open data file (try running `git submodule update --init`)");
210+
207211
println!("Loading file: {path}");
208212

209213
let tests: TestFile = serde_json::from_reader(data_file).expect("invalid test JSON");

0 commit comments

Comments
 (0)