platformtest: dedicated pool per test, Makefile target, maintainer notice

fixes #216
fixes #211
This commit is contained in:
Christian Schwarz
2019-09-29 18:44:59 +02:00
parent 215848f476
commit 58ab25919e
8 changed files with 161 additions and 41 deletions
+8 -1
View File
@@ -1,4 +1,4 @@
.PHONY: generate build test vet cover release docs docs-clean clean format lint
.PHONY: generate build test vet cover release docs docs-clean clean format lint platformtest
.DEFAULT_GOAL := build
ARTIFACTDIR := artifacts
@@ -54,6 +54,13 @@ vet:
GOOS=linux GOARCH=arm64 $(GO) vet $(GO_BUILDFLAGS) ./...
GOOS=darwin GOARCH=amd64 $(GO) vet $(GO_BUILDFLAGS) ./...
ZREPL_PLATFORMTEST_POOLNAME := zreplplatformtest
ZREPL_PLATFORMTEST_IMAGEPATH := /tmp/zreplplatformtest.pool.img
$(ARTIFACTDIR)/zrepl_platformtest:
$(GO_BUILD) -o "$(ARTIFACTDIR)/zrepl_platformtest" ./platformtest/harness
platformtest: $(ARTIFACTDIR)/zrepl_platformtest
"$(ARTIFACTDIR)/zrepl_platformtest" -poolname "$(ZREPL_PLATFORMTEST_POOLNAME)" -imagepath "$(ZREPL_PLATFORMTEST_IMAGEPATH)"
$(ARTIFACTDIR):
mkdir -p "$@"