2020-06-02 16:48:55 +02: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..."
|
2021-06-18 10:51:42 +02:00
|
|
|
go get -u github.com/onsi/ginkgo/ginkgo
|
2020-06-02 16:48:55 +02:00
|
|
|
fi
|
|
|
|
|
2020-09-07 08:57:23 +02:00
|
|
|
debug=false
|
|
|
|
if [ x${DEBUG} == x"true" ]; then
|
|
|
|
debug=true
|
|
|
|
fi
|
2021-06-18 10:48:36 +02:00
|
|
|
logLevel=debug
|
|
|
|
if [ x${LOG_LEVEL} != x"" ]; then
|
|
|
|
logLevel=${LOG_LEVEL}
|
|
|
|
fi
|
|
|
|
|
2021-06-20 17:57:41 +02:00
|
|
|
ginkgo -nodes=5 -slowSpecThreshold=20 ${ROOT}/test/e2e -- -frpc-path=${ROOT}/bin/frpc -frps-path=${ROOT}/bin/frps -log-level=${logLevel} -debug=${debug}
|