@@ -25,7 +25,8 @@ VERSION := $(shell git describe --tags --dirty)
2525VERSION := $(VERSION:v%=% )
2626TARBALL ?= cri-containerd-$(VERSION ) .tar.gz
2727BUILD_TAGS: = -ldflags '-X $(PROJECT ) /pkg/version.criContainerdVersion=$(VERSION ) '
28- SOURCES := $(shell find . -name '* .go')
28+ SOURCES := $(shell find cmd/ pkg/ vendor/ -name '* .go')
29+ INTEGRATION_SOURCES := $(shell find integration/ -name '* .go')
2930
3031all : binaries
3132
@@ -34,20 +35,21 @@ default: help
3435help :
3536 @echo " Usage: make <target>"
3637 @echo
37- @echo " * 'install' - Install binaries to system locations"
38- @echo " * 'binaries' - Build cri-containerd"
39- @echo " * 'static-binaries - Build static cri-containerd"
40- @echo " * 'release' - Build release tarball"
41- @echo " * 'push' - Push release tarball to GCS"
42- @echo " * 'test' - Test cri-containerd"
43- @echo " * 'test-cri' - Test cri-containerd with cri validation test"
44- @echo " * 'test-e2e-node' - Test cri-containerd with Kubernetes node e2e test"
45- @echo " * 'clean' - Clean artifacts"
46- @echo " * 'verify' - Execute the source code verification tools"
47- @echo " * 'install.tools' - Install tools used by verify"
48- @echo " * 'install.deps' - Install dependencies of cri-containerd (containerd, runc, cni) Note: BUILDTAGS defaults to 'seccomp apparmor' for runc build"
49- @echo " * 'uninstall' - Remove installed binaries from system locations"
50- @echo " * 'version' - Print current cri-containerd release version"
38+ @echo " * 'install' - Install binaries to system locations"
39+ @echo " * 'binaries' - Build cri-containerd"
40+ @echo " * 'static-binaries - Build static cri-containerd"
41+ @echo " * 'release' - Build release tarball"
42+ @echo " * 'push' - Push release tarball to GCS"
43+ @echo " * 'test' - Test cri-containerd with unit test"
44+ @echo " * 'test-integration' - Test cri-containerd with integration test"
45+ @echo " * 'test-cri' - Test cri-containerd with cri validation test"
46+ @echo " * 'test-e2e-node' - Test cri-containerd with Kubernetes node e2e test"
47+ @echo " * 'clean' - Clean artifacts"
48+ @echo " * 'verify' - Execute the source code verification tools"
49+ @echo " * 'install.tools' - Install tools used by verify"
50+ @echo " * 'install.deps' - Install dependencies of cri-containerd (containerd, runc, cni) Note: BUILDTAGS defaults to 'seccomp apparmor' for runc build"
51+ @echo " * 'uninstall' - Remove installed binaries from system locations"
52+ @echo " * 'version' - Print current cri-containerd release version"
5153
5254verify : lint gofmt boiler
5355
@@ -75,6 +77,12 @@ $(BUILD_DIR)/cri-containerd: $(SOURCES)
7577test :
7678 go test -timeout=10m -race ./pkg/... $(BUILD_TAGS ) $(GO_LDFLAGS ) $(GO_GCFLAGS )
7779
80+ $(BUILD_DIR ) /integration.test : $(INTEGRATION_SOURCES )
81+ go test -c $(PROJECT ) /integration -o $(BUILD_DIR ) /integration.test
82+
83+ test-integration : $(BUILD_DIR ) /integration.test binaries
84+ @./hack/test-integration.sh
85+
7886test-cri : binaries
7987 @./hack/test-cri.sh
8088
@@ -142,6 +150,7 @@ install.tools: .install.gitvalidation .install.gometalinter
142150 install \
143151 lint \
144152 test \
153+ test-integration \
145154 test-cri \
146155 test-e2e-node \
147156 uninstall \
0 commit comments