Skip to content

Commit 5b9e7f5

Browse files
committed
End-to-end tests selection in the Makefile
Introduces a new LIST_OF_E2E_TESTS option in order to select end-to-end tests that will be executed when calling `make test`. It uses the tests script's arguments parsing that already exists.
1 parent 8354e91 commit 5b9e7f5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ BUILDX_BUILDER_SKIP_CREATION ?=
4343
# Allow alpine to be pulled from a private registry when building the end-to-end tests images
4444
ALPINE_REGISTRY_PREFIX ?=
4545

46+
# By default all end-to-end tests are executed, but this allows for a manual selection
47+
LIST_OF_E2E_TESTS ?=
48+
4649
###
4750
### These variables should not need tweaking.
4851
###
@@ -268,7 +271,7 @@ test: $(BUILD_DIRS)
268271
@if [ -n "$(NO_PROXY)" ]; then \
269272
export NO_PROXY="$(NO_PROXY)"; \
270273
fi
271-
VERBOSE=1 ./test_e2e.sh
274+
VERBOSE=1 ./test_e2e.sh $(LIST_OF_E2E_TESTS)
272275

273276
TEST_TOOLS := $(shell find _test_tools/* -type d -printf "%f ")
274277
test-tools: $(foreach tool, $(TEST_TOOLS), .container-test_tool.$(tool))

0 commit comments

Comments
 (0)