mirror of https://github.com/k3s-io/k3s
19 lines
290 B
Makefile
19 lines
290 B
Makefile
|
BUILDTAGS := selinux
|
||
|
|
||
|
check-gopath:
|
||
|
ifndef GOPATH
|
||
|
$(error GOPATH is not set)
|
||
|
endif
|
||
|
|
||
|
.PHONY: test
|
||
|
test: check-gopath
|
||
|
go test -timeout 3m -tags "${BUILDTAGS}" ${TESTFLAGS} -v ./...
|
||
|
|
||
|
.PHONY:
|
||
|
lint:
|
||
|
@out="$$(golint go-selinux)"; \
|
||
|
if [ -n "$$out" ]; then \
|
||
|
echo "$$out"; \
|
||
|
exit 1; \
|
||
|
fi
|