From f0af2d00edcb5a486acc051335d7556d96fb7760 Mon Sep 17 00:00:00 2001 From: Antti Kervinen Date: Wed, 11 Oct 2023 17:14:07 +0300 Subject: [PATCH] Makefile: add the e2e-tests target Signed-off-by: Antti Kervinen --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index d847ba981..827765c19 100644 --- a/Makefile +++ b/Makefile @@ -45,6 +45,9 @@ GINKGO := ginkgo TEST_SETUP := test-setup.sh TEST_CLEANUP := test-cleanup.sh +E2E_TESTS ?= policies.test-suite +RUN_E2E_TESTS := cd test/e2e; ./run_tests.sh + BUILD_PATH := $(shell pwd)/build BIN_PATH := $(BUILD_PATH)/bin COVERAGE_PATH := $(BUILD_PATH)/coverage @@ -337,6 +340,9 @@ ginkgo-subpkgs-tests: # TODO(klihub): coverage ? -r . || exit 1); \ done +e2e-tests: build images + $(Q)$(RUN_E2E_TESTS) $(E2E_TESTS) + codecov: SHELL := $(shell which bash) codecov: bash <(curl -s https://codecov.io/bash) -f $(COVERAGE_PATH)/coverprofile