2015-01-30 22:08:53 -06: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 10:47:53 -05:00
|
|
|
# 3. go vet (http://golang.org/cmd/vet)
|
2016-11-21 09:17:32 -06: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-30 22:08:53 -06:00
|
|
|
|
2015-04-14 14:13:13 -05:00
|
|
|
set -ex
|
2015-01-30 22:08:53 -06: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 ./...
|
2021-08-27 10:54:26 -04:00
|
|
|
go test -bench=. -benchtime=4000x ./claimtrie/
|