Create a testing package for common utilities

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
This commit is contained in:
Gabriel Adrian Samfira 2022-09-15 17:48:09 +03:00
parent a2cd015533
commit b4ac128673
No known key found for this signature in database
GPG key ID: 7D073DCC2C074CB5
5 changed files with 11 additions and 10 deletions

View file

@ -5,8 +5,6 @@ IMAGE_TAG = garm-build
USER_ID=$(shell ((docker --version | grep -q podman) && echo "0" || id -u))
USER_GROUP=$(shell ((docker --version | grep -q podman) && echo "0" || id -g))
GO_PACKAGES?=$(shell (go list ./... | grep -v 'vendor'))
default: build-static
.PHONY : build-static
@ -18,4 +16,4 @@ build-static:
.PHONY: test
test:
go test $(GO_PACKAGES) -v $(TEST_ARGS) -timeout=15m -parallel=4
go test -mod=vendor -tags testing -v $(TEST_ARGS) -timeout=15m -parallel=4 ./...