1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
// Runs the bogo test suite, in the form of a rust test.
// Note that bogo requires a golang environment to build
// and run.
#[test]
#[ignore]
fn run_bogo_tests_ring() {
run_bogo_tests("ring");
}
#[test]
#[ignore]
fn run_bogo_tests_aws_lc_rs() {
run_bogo_tests("aws-lc-rs");
}
#[test]
#[ignore]
fn run_bogo_tests_aws_lc_rs_fips() {
run_bogo_tests("aws-lc-rs-fips");
}
#[test]
#[ignore]
fn run_bogo_tests_post_quantum() {
run_bogo_tests("post-quantum");
}
fn run_bogo_tests(provider: &str) {
use std::process::Command;
let rc = Command::new("./runme")
.current_dir("../bogo")
.env("BOGO_SHIM_PROVIDER", provider)
.spawn()
.expect("cannot run bogo/runme")
.wait()
.expect("cannot wait for bogo");
assert!(rc.success(), "bogo ({provider}) exited non-zero");
}
|