forked from xelabs/go-mysqlstack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
39 lines (34 loc) · 822 Bytes
/
makefile
File metadata and controls
39 lines (34 loc) · 822 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
export PATH := $(GOPATH)/bin:$(PATH)
fmt:
go fmt ./...
go vet ./...
test:
go get github.com/stretchr/testify/assert
@echo "--> Testing..."
@$(MAKE) testxlog
@$(MAKE) testsqlparser
@$(MAKE) testcommon
@$(MAKE) testsqldb
@$(MAKE) testproto
@$(MAKE) testpacket
@$(MAKE) testdriver
testxlog:
go test -v ./xlog
testsqlparser:
go test -v ./sqlparser/...
testcommon:
go test -v ./common
testsqldb:
go test -v ./sqldb
testproto:
go test -v ./proto
testpacket:
go test -v ./packet
testdriver:
go test -v ./driver
COVPKGS = ./sqlparser ./common ./sqldb ./proto ./packet ./driver ./sqlparser/depends/sqltypes
coverage:
go get github.com/pierrre/gotestcover
gotestcover -coverprofile=coverage.out -v $(COVPKGS)
go tool cover -html=coverage.out
.PHONY: fmt testcommon testproto testpacket testdriver coverage