frp/hack/run-e2e.sh

21 lines
538 B
Bash
Raw Normal View History

2020-06-02 21:48:55 +07:00
#!/usr/bin/env bash
ROOT=$(unset CDPATH && cd $(dirname "${BASH_SOURCE[0]}")/.. && pwd)
which ginkgo &> /dev/null
if [ $? -ne 0 ]; then
echo "ginkgo not found, try to install..."
2022-08-29 00:02:53 +07:00
go install github.com/onsi/ginkgo/ginkgo@v1.16.5
2020-06-02 21:48:55 +07:00
fi
2020-09-07 13:57:23 +07:00
debug=false
if [ x${DEBUG} == x"true" ]; then
debug=true
fi
2021-06-18 15:48:36 +07:00
logLevel=debug
if [ x${LOG_LEVEL} != x"" ]; then
logLevel=${LOG_LEVEL}
fi
2021-08-02 12:07:28 +07:00
ginkgo -nodes=8 -slowSpecThreshold=20 ${ROOT}/test/e2e -- -frpc-path=${ROOT}/bin/frpc -frps-path=${ROOT}/bin/frps -log-level=${logLevel} -debug=${debug}