test: add 'VERBOSE' flag to enable client debugs
parent
2b5733d742
commit
997469a8cf
10
test
10
test
|
@ -82,8 +82,16 @@ fi
|
||||||
|
|
||||||
function unit_pass {
|
function unit_pass {
|
||||||
echo "Running unit tests..."
|
echo "Running unit tests..."
|
||||||
|
GO_TEST_FLAG=""
|
||||||
|
if [ "${VERBOSE}" == "1" ]; then
|
||||||
|
GO_TEST_FLAG="-v"
|
||||||
|
fi
|
||||||
|
if [ "${VERBOSE}" == "2" ]; then
|
||||||
|
GO_TEST_FLAG="-v"
|
||||||
|
export CLIENT_DEBUG=1
|
||||||
|
fi
|
||||||
# only -run=Test so examples can run in integration tests
|
# only -run=Test so examples can run in integration tests
|
||||||
go test -timeout 3m "${COVER}" ${RACE} -cpu 1,2,4 -run=Test "$@" "${TEST[@]}"
|
go test ${GO_TEST_FLAG} -timeout 3m "${COVER}" ${RACE} -cpu 1,2,4 -run=Test "$@" "${TEST[@]}"
|
||||||
}
|
}
|
||||||
|
|
||||||
function integration_pass {
|
function integration_pass {
|
||||||
|
|
Loading…
Reference in New Issue