Skip to content

Commit

Permalink
Makefile: add the e2e-tests target
Browse files Browse the repository at this point in the history
Signed-off-by: Antti Kervinen <[email protected]>
  • Loading branch information
askervin committed Oct 16, 2023
1 parent 6c54cc5 commit a1d9c97
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a1d9c97

Please sign in to comment.