2014-04-09 11:49:19 +00:00
|
|
|
BRANCH=`git rev-parse --abbrev-ref HEAD`
|
|
|
|
COMMIT=`git rev-parse --short HEAD`
|
|
|
|
GOLDFLAGS="-X main.branch $(BRANCH) -X main.commit $(COMMIT)"
|
2014-01-12 05:51:01 +00:00
|
|
|
|
2014-05-23 16:36:23 +00:00
|
|
|
default: build
|
|
|
|
|
2015-12-27 22:27:39 +00:00
|
|
|
race:
|
|
|
|
@go test -v -race -test.run="TestSimulate_(100op|1000op)"
|
2014-03-04 20:02:17 +00:00
|
|
|
|
2014-03-24 13:38:27 +00:00
|
|
|
# go get github.com/kisielk/errcheck
|
|
|
|
errcheck:
|
2022-02-18 16:07:03 +00:00
|
|
|
@errcheck -ignorepkg=bytes -ignore=os:Remove github.com/hak5/bolt
|
2014-03-24 13:38:27 +00:00
|
|
|
|
2015-12-27 22:27:39 +00:00
|
|
|
test:
|
|
|
|
@go test -v -cover .
|
|
|
|
@go test -v ./cmd/bolt
|
2014-01-12 05:51:01 +00:00
|
|
|
|
2015-12-27 22:27:39 +00:00
|
|
|
.PHONY: fmt test
|