mirror of https://github.com/ctz/rustls
24 lines
521 B
Bash
Executable File
24 lines
521 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# This script fetches, builds, and runs the BoringSSL
|
|
# TLS test tool ('BoGo') against rustls.
|
|
|
|
set -xe
|
|
|
|
if [ ! -e ../target/debug/examples/bogo_shim ] ; then
|
|
cargo test --no-run --features dangerous_configuration,quic
|
|
fi
|
|
|
|
if [ ! -e bogo/ ] ; then
|
|
./fetch-and-build
|
|
cp -v keys/* bogo/
|
|
fi
|
|
|
|
# Best effort on OS-X
|
|
case $OSTYPE in darwin*) set +e ;; esac
|
|
|
|
( cd bogo && ./bogo.test -shim-path ../../target/debug/examples/bogo_shim \
|
|
-shim-config ../config.json \
|
|
-pipe -allow-unimplemented )
|
|
true
|