From c5cf34d49e829e8261cc91451f5bffb1e1b71cf9 Mon Sep 17 00:00:00 2001 From: Pawel Wieczorek Date: Mon, 23 Mar 2020 16:02:04 +0100 Subject: Add temporary "make" target for automated testing compatibility Utility "sslendpoints" and related packages make use of idiomatic Go testing commands, i.e. go test [./...]. Thanks to Go Modules [1] nothing else is needed to run internal tests for this tool. Unfortunately it's not the case for all Go-based Integration tools. In order to use a single automated verification script in CI additional "make" target is required. It will provide temporary compatibility layer with utilities setting up test environment on their own with "make test" target. This patch should be reverted upon removal of such cases (currently: after dropping "../k8s/check" tool in favour of Aquasec solution). [1] https://blog.golang.org/using-go-modules (see "Adding a dependency" test execution explanation) Issue-ID: INT-1498 Change-Id: I14c83f7f193c7688590366db988ff02c13c036a4 Signed-off-by: Pawel Wieczorek --- test/security/sslendpoints/Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/security/sslendpoints') diff --git a/test/security/sslendpoints/Makefile b/test/security/sslendpoints/Makefile index 2d6308826..cf5c34d72 100644 --- a/test/security/sslendpoints/Makefile +++ b/test/security/sslendpoints/Makefile @@ -10,6 +10,10 @@ all: docker-build .PHONY: clean clean: clean-docker-build clean-build +.PHONY: test +test: + go test ./... + .PHONY: docker-build docker-build: ${BINARIES} docker rm "${BUILD_DOCKER_CONTAINER}" -- cgit 1.2.3-korg