2020-06-02 22:48:55 +08: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..."
|
|
|
|
go get -u github.com/onsi/ginkgo/ginkgo
|
|
|
|
fi
|
|
|
|
|
2020-09-07 14:57:23 +08:00
|
|
|
debug=false
|
|
|
|
if [ x${DEBUG} == x"true" ]; then
|
|
|
|
debug=true
|
|
|
|
fi
|
|
|
|
ginkgo -nodes=4 ${ROOT}/test/e2e -- -frpc-path=${ROOT}/bin/frpc -frps-path=${ROOT}/bin/frps -log-level=debug -debug=${debug}
|