Fix reported sdlgo testing coverage at sonarcloud.io
[ci-management.git] / jjb / ric-plt-sdlgo / prescan-sdlgo-go-ubuntu.sh
index b9c27b5..18d4d54 100644 (file)
@@ -58,11 +58,11 @@ hash=$(git rev-parse --short HEAD || true)
 
 # Build
 
-go build -a -installsuffix cgo -ldflags "-X main.Version=$tag -X main.Hash=$hash" -o ./cmd/*.go
+go build ./...
 
 # Execute UT and measure coverage
 
-go test . -v -coverprofile cover.out || true
+go test ./... -v -coverprofile cover.out || true
 
 echo "--> build_sdlgo_ubuntu.sh ends"