forked from rustls/rustls
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrunme
executable file
·45 lines (38 loc) · 1.1 KB
/
runme
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
42
43
44
45
#!/usr/bin/env bash
# This script fetches, builds, and runs the BoringSSL
# TLS test tool ('BoGo') against rustls.
set -xe
cargo run -- -print-rustls-provider
case ${BOGO_SHIM_PROVIDER:-aws-lc-rs} in
ring)
cpp -P -DRING config.json.in > config.json
;;
aws-lc-rs)
cpp -P -DAWS_LC_RS config.json.in > config.json
;;
aws-lc-rs-fips)
cpp -P -DAWS_LC_RS -DFIPS config.json.in > config.json
;;
post-quantum)
cpp -P -DAWS_LC_RS -DPOST_QUANTUM config.json.in > config.json
;;
existing)
;;
*)
echo "unsupported BOGO_SHIM_PROVIDER: supported are (ring|aws-lc-rs|aws-lc-rs-fips|post-quantum|existing)"
exit 1
;;
esac
if [ ! -e bogo/ssl/test/runner/runner.test ] ; then
./fetch-and-build
cp -v keys/* bogo/
fi
# Best effort on OS-X
case $OSTYPE in darwin*) set +e ;; esac
( cd bogo/ssl/test/runner && ./runner.test -shim-path ../../../../../target/debug/bogo \
-shim-config ../../../../config.json \
-pipe \
-allow-unimplemented \
-test.timeout 60s \
"$@") # you can pass in `-test "Foo;Bar"` to run specific tests
true