Add Makefile task for tests

Signed-off-by: Christopher M. Luciano <cmluciano@us.ibm.com>
This commit is contained in:
Christopher M. Luciano 2017-04-24 11:48:36 -04:00
parent 647e3274aa
commit 521a626bfb
No known key found for this signature in database
GPG Key ID: 5148DBB31F2843F1

View File

@ -27,6 +27,7 @@ help:
@echo @echo
@echo " * 'install' - Install binaries to system locations" @echo " * 'install' - Install binaries to system locations"
@echo " * 'binaries' - Build cri-containerd" @echo " * 'binaries' - Build cri-containerd"
@echo " * 'test' - Test cri-containerd"
@echo " * 'clean' - Clean artifacts" @echo " * 'clean' - Clean artifacts"
@echo " * 'verify' - Execute the source code verification tools" @echo " * 'verify' - Execute the source code verification tools"
@echo " * 'install.tools' - Installs tools used by verify" @echo " * 'install.tools' - Installs tools used by verify"
@ -57,6 +58,9 @@ cri-containerd: check-gopath
$(GO) build -o $(BUILD_DIR)/$@ \ $(GO) build -o $(BUILD_DIR)/$@ \
$(PROJECT)/cmd/cri-containerd $(PROJECT)/cmd/cri-containerd
test:
go test -timeout=1m -v -race ./pkg/... $(BUILD_TAGS)
clean: clean:
rm -f $(BUILD_DIR)/cri-containerd rm -f $(BUILD_DIR)/cri-containerd
@ -91,6 +95,7 @@ install.tools: .install.gitvalidation .install.gometalinter
.PHONY: \ .PHONY: \
binaries \ binaries \
boiler \ boiler \
test \
clean \ clean \
default \ default \
gofmt \ gofmt \