move benchmark test to a separate package

This commit is contained in:
Marten Seemann
2017-07-25 09:41:39 +07:00
parent 2c2ca2e670
commit d108e10420
3 changed files with 21 additions and 7 deletions

View File

@@ -4,16 +4,16 @@ set -e
go get -t ./...
if [ ${TESTMODE} == "unit" ]; then
ginkgo -r --cover --randomizeAllSpecs --randomizeSuites --trace --progress --skipPackage integrationtests --skipMeasurements
ginkgo -r --cover --randomizeAllSpecs --randomizeSuites --trace --progress --skipPackage integrationtests,benchmark
fi
if [ ${TESTMODE} == "integration" ]; then
# run benchmark tests
ginkgo --randomizeAllSpecs --randomizeSuites --trace --progress -focus "Benchmark"
ginkgo --randomizeAllSpecs --randomizeSuites --trace --progress benchmark
# run benchmark tests with the Go race detector
# The Go race detector only works on amd64.
if [ ${TRAVIS_GOARCH} == 'amd64' ]; then
ginkgo --race --randomizeAllSpecs --randomizeSuites --trace --progress -focus "Benchmark"
ginkgo --race --randomizeAllSpecs --randomizeSuites --trace --progress benchmark
fi
# run integration tests
ginkgo -v -r --randomizeAllSpecs --randomizeSuites --trace --progress integrationtests