mirror of
https://github.com/strukturag/nextcloud-spreed-signaling
synced 2024-06-09 09:22:11 +02:00
make: Don't run tests verbose by default.
This commit is contained in:
parent
0eb234b24d
commit
ebb215c592
14
Makefile
14
Makefile
|
@ -52,6 +52,14 @@ ifneq ($(COUNT),)
|
||||||
TESTARGS := $(TESTARGS) -count $(COUNT)
|
TESTARGS := $(TESTARGS) -count $(COUNT)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifneq ($(PARALLEL),)
|
||||||
|
TESTARGS := $(TESTARGS) -parallel $(PARALLEL)
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifneq ($(VERBOSE),)
|
||||||
|
TESTARGS := $(TESTARGS) -v
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(GOARCH), amd64)
|
ifeq ($(GOARCH), amd64)
|
||||||
GOPATHBIN := $(GOPATH)/bin
|
GOPATHBIN := $(GOPATH)/bin
|
||||||
else
|
else
|
||||||
|
@ -93,18 +101,18 @@ vet: common
|
||||||
$(GO) vet $(ALL_PACKAGES)
|
$(GO) vet $(ALL_PACKAGES)
|
||||||
|
|
||||||
test: vet common
|
test: vet common
|
||||||
$(GO) test -v -timeout $(TIMEOUT) $(TESTARGS) $(ALL_PACKAGES)
|
$(GO) test -timeout $(TIMEOUT) $(TESTARGS) $(ALL_PACKAGES)
|
||||||
|
|
||||||
cover: vet common
|
cover: vet common
|
||||||
rm -f cover.out && \
|
rm -f cover.out && \
|
||||||
$(GO) test -v -timeout $(TIMEOUT) -coverprofile cover.out $(ALL_PACKAGES) && \
|
$(GO) test -timeout $(TIMEOUT) -coverprofile cover.out $(ALL_PACKAGES) && \
|
||||||
sed -i "/_easyjson/d" cover.out && \
|
sed -i "/_easyjson/d" cover.out && \
|
||||||
sed -i "/\.pb\.go/d" cover.out && \
|
sed -i "/\.pb\.go/d" cover.out && \
|
||||||
$(GO) tool cover -func=cover.out
|
$(GO) tool cover -func=cover.out
|
||||||
|
|
||||||
coverhtml: vet common
|
coverhtml: vet common
|
||||||
rm -f cover.out && \
|
rm -f cover.out && \
|
||||||
$(GO) test -v -timeout $(TIMEOUT) -coverprofile cover.out $(ALL_PACKAGES) && \
|
$(GO) test -timeout $(TIMEOUT) -coverprofile cover.out $(ALL_PACKAGES) && \
|
||||||
sed -i "/_easyjson/d" cover.out && \
|
sed -i "/_easyjson/d" cover.out && \
|
||||||
sed -i "/\.pb\.go/d" cover.out && \
|
sed -i "/\.pb\.go/d" cover.out && \
|
||||||
$(GO) tool cover -html=cover.out -o coverage.html
|
$(GO) tool cover -html=cover.out -o coverage.html
|
||||||
|
|
Loading…
Reference in a new issue