Files
quic-go/interop/run_endpoint.sh
Marten Seemann 9983c7903d use a multistage Docker build
This significantly reduces the file size of the resulting Docker image.
2019-10-23 11:04:04 +07:00

18 lines
397 B
Bash

#!/bin/bash
set -e
# Set up the routing needed for the simulation.
/setup.sh
if [ "$ROLE" == "client" ]; then
# Wait for the simulator to start up.
/wait-for-it.sh sim:57832 -s -t 10
echo "Starting QUIC client..."
echo "Client params: $CLIENT_PARAMS"
echo "Test case: $TESTCASE"
./client $CLIENT_PARAMS $REQUESTS
else
echo "Running QUIC server."
./server "$@"
fi