diff options
Diffstat (limited to 'app/Makefile')
-rw-r--r-- | app/Makefile | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/app/Makefile b/app/Makefile index 2bf7c07..92cb899 100644 --- a/app/Makefile +++ b/app/Makefile @@ -38,8 +38,8 @@ LIBS := "go.anytun.org/anygone/satp" \ "github.com/lab11/go-tuntap/tuntap" \ "github.com/spf13/pflag" -all: build -.PHONY: vet format build clean distclean +all: build test +.PHONY: vet format getlibs updatelibs build build-static test bench cover clean distclean vet: $(GOCMD) vet @@ -59,6 +59,16 @@ build: getlibs build-static: getlibs $(GOCMD) build -tags netgo -o $(EXECUTEABLE) +test: + $(GOCMD) test + +bench: + @$(GOCMD) test -bench=. + +cover: + @$(GOCMD) test -coverprofile=coverage.out + @$(GOCMD) tool cover -html=coverage.out + distclean: clean rm -f $(EXECUTEABLE).8 |