run-e2e.sh 837 B

12345678910111213141516171819202122232425262728293031323334
  1. #!/bin/sh
  2. SCRIPT=$(readlink -f "$0")
  3. ROOT=$(unset CDPATH && cd "$(dirname "$SCRIPT")/.." && pwd)
  4. ginkgo_command=$(which ginkgo 2>/dev/null)
  5. if [ -z "$ginkgo_command" ]; then
  6. echo "ginkgo not found, try to install..."
  7. go install github.com/onsi/ginkgo/v2/ginkgo@v2.17.1
  8. fi
  9. debug=false
  10. if [ "x${DEBUG}" = "xtrue" ]; then
  11. debug=true
  12. fi
  13. logLevel=debug
  14. if [ "${LOG_LEVEL}" ]; then
  15. logLevel="${LOG_LEVEL}"
  16. fi
  17. frpcPath=${ROOT}/bin/frpc
  18. if [ "${FRPC_PATH}" ]; then
  19. frpcPath="${FRPC_PATH}"
  20. fi
  21. frpsPath=${ROOT}/bin/frps
  22. if [ "${FRPS_PATH}" ]; then
  23. frpsPath="${FRPS_PATH}"
  24. fi
  25. concurrency="16"
  26. if [ "${CONCURRENCY}" ]; then
  27. concurrency="${CONCURRENCY}"
  28. fi
  29. ginkgo -nodes=${concurrency} --poll-progress-after=60s ${ROOT}/test/e2e -- -frpc-path=${frpcPath} -frps-path=${frpsPath} -log-level=${logLevel} -debug=${debug}