aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPawel Wieczorek <p.wieczorek2@samsung.com>2020-03-23 16:02:04 +0100
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>2020-03-25 13:08:24 +0000
commitc5cf34d49e829e8261cc91451f5bffb1e1b71cf9 (patch)
tree588c658d07823af4b73a3b8aa4500c9b3154ebe5
parent600bce340bda372151b4120d89c854f2decc3a93 (diff)
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 <p.wieczorek2@samsung.com>
-rw-r--r--test/security/sslendpoints/Makefile4
1 files changed, 4 insertions, 0 deletions
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}"