...
1#!/bin/bash
2
3# Set up the routing needed for the simulation
4/setup.sh
5
6# The following variables are available for use:
7# - ROLE contains the role of this execution context, client or server
8# - SERVER_PARAMS contains user-supplied command line parameters
9# - CLIENT_PARAMS contains user-supplied command line parameters
10
11if [ "$ROLE" == "client" ]; then
12 # Wait for the simulator to start up.
13 /wait-for-it.sh sim:57832 -s -t 30
14 ./interop -output=/downloads -qlog=$QLOGDIR $CLIENT_PARAMS $REQUESTS
15elif [ "$ROLE" == "server" ]; then
16 ./interop -cert=/certs/cert.pem -key=/certs/priv.key -qlog=$QLOGDIR -listen=:443 -root=/www "$@" $SERVER_PARAMS
17fi
View as plain text