Files
quic-go/interop/run_endpoint.sh
2019-10-24 14:41:40 +07:00

18 lines
445 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"
QUIC_GO_LOG_LEVEL=debug ./client $CLIENT_PARAMS $REQUESTS
else
echo "Running QUIC server."
QUIC_GO_LOG_LEVEL=debug ./server "$@"
fi