podman/vendor/github.com/fsouza/go-dockerclient/Makefile
Daniel J Walsh 97fcbfcbec
cgroupsns was not following containers.conf
Implement ParseCgroupsNamespace to handle defaults.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-05-01 15:00:33 -04:00

28 lines
416 B
Makefile

.PHONY: \
all \
lint \
pretest \
test \
integration
ifeq "$(strip $(shell go env GOARCH))" "amd64"
RACE_FLAG := -race
endif
all: test
lint:
cd /tmp && GO111MODULE=on go get github.com/golangci/golangci-lint/cmd/golangci-lint@latest
golangci-lint run
pretest: lint
gotest:
go test $(RACE_FLAG) -vet all ./...
test: pretest gotest
integration:
go test -tags docker_integration -run TestIntegration -v