Skip to content

Commit

Permalink
Update s2n-quic integration test (#395)
Browse files Browse the repository at this point in the history
  • Loading branch information
justsmth authored May 2, 2024
1 parent 29f1d9b commit a9bc038
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions aws-lc-rs/scripts/run-s2n-quic-integration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,16 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0 OR ISC

ROOT=$PWD
QUIC_RING_STRING="^ring = { .* optional .* }"
QUIC_OUR_STRING="ring = { path = \"${PWD}\", optional = true, package = \"aws-lc-rs\"}"
QUIC_CRYPTO_RING_STRING="^ring = { .* }"
QUIC_CRYPTO_OUR_STRING="ring = { path = \"${PWD}\", package = \"aws-lc-rs\"}"
QUIC_AWS_LC_RS_STRING="^aws-lc-rs = { .* }"
QUIC_PATH_STRING="aws-lc-rs = { path = \"${PWD}\" }"

git clone https://github.com/aws/s2n-quic.git
cd s2n-quic

# replace instances of ring with our crate
if [[ "$(uname)" == "Darwin" ]]; then
find ./ -type f -name "Cargo.toml" | xargs sed -i '' -e "s|${QUIC_RING_STRING}|${QUIC_OUR_STRING}|g" -e "s|${QUIC_CRYPTO_RING_STRING}|${QUIC_CRYPTO_OUR_STRING}|g"
find ./ -type f -name "Cargo.toml" | xargs sed -i '' -e "s|${QUIC_AWS_LC_RS_STRING}|${QUIC_PATH_STRING}|"
else
find ./ -type f -name "Cargo.toml" | xargs sed -i -e "s|${QUIC_RING_STRING}|${QUIC_OUR_STRING}|g" -e "s|${QUIC_CRYPTO_RING_STRING}|${QUIC_CRYPTO_OUR_STRING}|g"
find ./ -type f -name "Cargo.toml" | xargs sed -i -e "s|${QUIC_AWS_LC_RS_STRING}|${QUIC_PATH_STRING}|"
fi
cargo test

0 comments on commit a9bc038

Please sign in to comment.