2015-01-31 05:08:53 +01:00
|
|
|
#!/bin/bash
|
|
|
|
# The script does automatic checking on a Go package and its sub-packages, including:
|
|
|
|
# 1. gofmt (http://golang.org/cmd/gofmt/)
|
2016-05-06 17:47:53 +02:00
|
|
|
# 3. go vet (http://golang.org/cmd/vet)
|
2016-11-21 16:17:32 +01:00
|
|
|
# 4. gosimple (https://github.com/dominikh/go-simple)
|
|
|
|
# 5. unconvert (https://github.com/mdempsky/unconvert)
|
2020-08-24 20:58:47 +02:00
|
|
|
# 6. race detector (http://blog.golang.org/race-detector)
|
|
|
|
# 7. test coverage (http://blog.golang.org/cover)
|
2015-01-31 05:08:53 +01:00
|
|
|
|
2015-04-14 21:13:13 +02:00
|
|
|
set -ex
|
2015-01-31 05:08:53 +01:00
|
|
|
|
2020-08-24 20:58:47 +02:00
|
|
|
env GORACE="halt_on_error=1" go test -race -tags="rpctest" -covermode atomic -coverprofile=profile.cov ./...
|
2022-05-24 09:41:56 +02:00
|
|
|
go test -bench=. -benchtime=4000x ./claimtrie/
|