From: Juha Hyttinen Date: Tue, 3 Nov 2020 07:05:41 +0000 (+0200) Subject: Added -test.v for test execution X-Git-Tag: v0.5.12~1 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=f497f138c90e8faebe06e6e4b80f2196a139c4bc;p=ric-plt%2Fxapp-frame.git Added -test.v for test execution Change-Id: Icdd82af447daea3113dcb02683d98e5fcf17d294 Signed-off-by: Juha Hyttinen --- diff --git a/build/make.go.mk b/build/make.go.mk index ac5a219..fb20da3 100755 --- a/build/make.go.mk +++ b/build/make.go.mk @@ -65,7 +65,7 @@ $(GO_CACHE_DIR)/%: $(GOFILES) $(GOMODFILES) $$(BUILDDEPS) $(GO_CACHE_DIR)/%_test: $(GOALLFILES) $(GOMODFILES) $$(BUILDDEPS) FORCE @echo "Testing:\t$*" @eval GO111MODULE=on GOSUMDB=off GO_ENABLED=0 GOOS=linux $(BUILDARGS) $(GOTEST) -coverprofile $(COVEROUT) -c -o $@ ./$* - @if test -e $@ ; then eval $(TESTENV) $@ -test.coverprofile $(COVEROUT); else true ; fi + @if test -e $@ ; then eval $(TESTENV) $@ -test.v -test.coverprofile $(COVEROUT); else true ; fi @if test -e $@ ; then go tool cover -html=$(COVEROUT) -o $(COVERHTML); else true ; fi