summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMatthew Heon <mheon@redhat.com>2021-01-11 16:14:07 -0500
committerMatthew Heon <mheon@redhat.com>2021-01-14 16:43:23 -0500
commitf781efd2dca4c1db54762c6edec2b915e48dd5d8 (patch)
treeb59fcfdfc29ff3979186116e23373c8d72f31169 /Makefile
parentb53cb57680a6fd7b383636ac2d6cd71003532915 (diff)
downloadpodman-f781efd2dca4c1db54762c6edec2b915e48dd5d8.tar.gz
podman-f781efd2dca4c1db54762c6edec2b915e48dd5d8.tar.bz2
podman-f781efd2dca4c1db54762c6edec2b915e48dd5d8.zip
Add tests for volume plugins
This involves a new test binary (a basic implementation of the volume plugin protocol) and a new image on quay.io (Containerfile to produce it and all sources located in this commit). The image is used to run a containerized plugin we can test against. Signed-off-by: Matthew Heon <mheon@redhat.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 48c3431cd..cc7d9f0ff 100644
--- a/Makefile
+++ b/Makefile
@@ -180,6 +180,14 @@ gofmt: ## Verify the source code gofmt
test/checkseccomp/checkseccomp: .gopathok $(wildcard test/checkseccomp/*.go)
$(GO) build $(BUILDFLAGS) -ldflags '$(LDFLAGS_PODMAN)' -tags "$(BUILDTAGS)" -o $@ ./test/checkseccomp
+.PHONY: test/testvol/testvol
+test/testvol/testvol: .gopathok $(wildcard test/testvol/*.go)
+ $(GO) build $(BUILDFLAGS) -ldflags '$(LDFLAGS_PODMAN)' -o $@ ./test/testvol
+
+.PHONY: volume-plugin-test-image
+volume-plugin-test-img:
+ podman build -t quay.io/libpod/volume-plugin-test-img -f Containerfile-testvol .
+
.PHONY: test/goecho/goecho
test/goecho/goecho: .gopathok $(wildcard test/goecho/*.go)
$(GO) build $(BUILDFLAGS) -ldflags '$(LDFLAGS_PODMAN)' -o $@ ./test/goecho