diff --git a/contrib/ctr-remote/Makefile b/contrib/ctr-remote/Makefile index 3659dd56ad8..7df0391cffe 100644 --- a/contrib/ctr-remote/Makefile +++ b/contrib/ctr-remote/Makefile @@ -18,7 +18,7 @@ build: release: @CGO_ENABLED=0 ${PROXY} GOOS=linux GOARCH=${GOARCH} go build -ldflags '-s -w -extldflags "-static"' -v -o bin/ctr-remote ./cmd/main.go -test: build +test: go vet $(PACKAGES) golangci-lint run go test -v -cover ${PACKAGES} diff --git a/contrib/nydus-overlayfs/Makefile b/contrib/nydus-overlayfs/Makefile index 49274d840c2..c5f7d98ab30 100644 --- a/contrib/nydus-overlayfs/Makefile +++ b/contrib/nydus-overlayfs/Makefile @@ -13,7 +13,7 @@ endif all: build build: - @CGO_ENABLED=0 ${PROXY} GOOS=linux GOARCH=${GOARCH} go build -ldflags="-s -w -X 'main.Version=${GIT_COMMIT}' -X 'main.BuildTime=${BUILD_TIME}'" -v -o bin/nydus-overlayfs ./cmd/main.go + @CGO_ENABLED=0 ${PROXY} GOOS=linux GOARCH=${GOARCH} go build -ldflags="-s -w -X 'main.Version=${GIT_COMMIT}' -X 'main.BuildTime=${BUILD_TIME}'" -v -o bin/nydus-overlayfs ./cmd/main.go release: @CGO_ENABLED=0 ${PROXY} GOOS=linux GOARCH=${GOARCH} go build -ldflags '-s -w -extldflags "-static"' -v -o bin/nydus-overlayfs ./cmd/main.go diff --git a/contrib/nydusify/Makefile b/contrib/nydusify/Makefile index 937554c5c3b..2631d7ee81f 100644 --- a/contrib/nydusify/Makefile +++ b/contrib/nydusify/Makefile @@ -26,13 +26,13 @@ release: plugin: @CGO_ENABLED=0 ${PROXY} GOOS=linux GOARCH=${GOARCH} go build -ldflags '-s -w -extldflags "-static"' -o nydus-hook-plugin ./plugin -test: build +test: @go vet $(PACKAGES) golangci-lint run - @go test -covermode=atomic -coverprofile=coverage.txt -count=1 -v -timeout 20m -race ${PACKAGES} + @go test -covermode=atomic -coverprofile=coverage.txt -count=1 -v -timeout 20m -parallel 16 -race ${PACKAGES} coverage: test - @go tool cover -func=coverage.out + @go tool cover -func=coverage.txt clean: rm -f cmd/nydusify