summaryrefslogtreecommitdiff
path: root/bogo
diff options
context:
space:
mode:
authorJoe Birr-Pixton <jpixton@gmail.com>2024-07-29 10:27:31 +0100
committerJoe Birr-Pixton <jpixton@gmail.com>2024-07-30 16:18:36 +0000
commit64bfff85cd2fff519c6d541b7d722c0a48b0cc77 (patch)
tree7357752b8723c472ce4cd2e0565cb7652211222d /bogo
parentdeab221f0cc06b070645b3eed97b86db9ed4b7b0 (diff)
bogo: print shim provider at top of test log
Diffstat (limited to 'bogo')
-rwxr-xr-xbogo/runme2
-rw-r--r--bogo/src/main.rs7
2 files changed, 8 insertions, 1 deletions
diff --git a/bogo/runme b/bogo/runme
index f344ee53..36cc5f92 100755
--- a/bogo/runme
+++ b/bogo/runme
@@ -5,7 +5,7 @@
set -xe
-cargo build
+cargo run -- -print-rustls-provider
case ${BOGO_SHIM_PROVIDER:-aws-lc-rs} in
ring)
diff --git a/bogo/src/main.rs b/bogo/src/main.rs
index adf48433..13ce21e4 100644
--- a/bogo/src/main.rs
+++ b/bogo/src/main.rs
@@ -1677,6 +1677,13 @@ pub fn main() {
process::exit(BOGO_NACK);
}
+ "-print-rustls-provider" => {
+ println!("{}", "*".repeat(66));
+ println!("rustls provider is {:?}", opts.selected_provider);
+ println!("{}", "*".repeat(66));
+ process::exit(0);
+ }
+
_ => {
println!("unhandled option {:?}", arg);
process::exit(1);