github.com/TugasAkhir-QUIC/quic-go@v0.0.2-0.20240215011318-d20e25a9054c/interop/run_endpoint.sh (about)

     1  #!/bin/bash
     2  set -e
     3  
     4  # Set up the routing needed for the simulation.
     5  /setup.sh
     6  
     7  echo "Using commit:" `cat commit.txt`
     8  
     9  if [ "$ROLE" == "client" ]; then
    10      # Wait for the simulator to start up.
    11      /wait-for-it.sh sim:57832 -s -t 10
    12      echo "Starting QUIC client..."
    13      echo "Client params: $CLIENT_PARAMS"
    14      echo "Test case: $TESTCASE"
    15      QUIC_GO_LOG_LEVEL=debug ./client $CLIENT_PARAMS $REQUESTS
    16  else
    17      echo "Running QUIC server."
    18      QUIC_GO_LOG_LEVEL=debug ./server "$@"
    19  fi