github.com/smartcontractkit/chainlink-testing-framework/libs@v0.0.0-20240227141906-ec710b4eb1a3/k8s/scripts/buildTests (about)

     1  #!/usr/bin/env bash
     2  
     3  # Runs compiled go executables and specificies the test to run
     4  # Builds executable go test binaries for this repos tests
     5  
     6  set -ex
     7  
     8  SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
     9  
    10  cd "$SCRIPT_DIR"/../ || exit 1
    11  
    12  # parse out quotes if they exist in the string
    13  suites="local-runner remote-runner"
    14  temp="${suites%\"}"
    15  tosplit="${temp#\"}"
    16  
    17  # find the suite name
    18  OIFS=$IFS
    19  IFS=' '
    20  for x in $tosplit
    21  do
    22      go test -c ./e2e/"${x}"
    23  done
    24  IFS=$OIFS