run-e2e.sh 537 B

1234567891011121314151617181920
  1. #!/usr/bin/env bash
  2. ROOT=$(unset CDPATH && cd $(dirname "${BASH_SOURCE[0]}")/.. && pwd)
  3. which ginkgo &> /dev/null
  4. if [ $? -ne 0 ]; then
  5. echo "ginkgo not found, try to install..."
  6. go install github.com/onsi/ginkgo/ginkgo@latest
  7. fi
  8. debug=false
  9. if [ x${DEBUG} == x"true" ]; then
  10. debug=true
  11. fi
  12. logLevel=debug
  13. if [ x${LOG_LEVEL} != x"" ]; then
  14. logLevel=${LOG_LEVEL}
  15. fi
  16. ginkgo -nodes=8 -slowSpecThreshold=20 ${ROOT}/test/e2e -- -frpc-path=${ROOT}/bin/frpc -frps-path=${ROOT}/bin/frps -log-level=${logLevel} -debug=${debug}