Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1076 from pohly/test-e2e-dlv
Browse files Browse the repository at this point in the history
test: support running E2E test under dlv
  • Loading branch information
pohly authored May 3, 2022
2 parents acb22ba + a43cb1f commit 2689fb0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/test.make
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@ TEST_E2E_ARGS =
empty:=
space:= $(empty) $(empty)

GO_TEST_E2E = $(GO) test -count=1 -timeout 0 -v ./test/e2e -args
ifneq ($(WITH_DLV),)
GO_TEST_E2E = dlv test ./test/e2e --
endif

# E2E testing relies on a running QEMU test cluster. It therefore starts it,
# but because it might have been running already and might have to be kept
# running to debug test failures, it doesn't stop it.
Expand All @@ -146,7 +151,7 @@ RUN_E2E = KUBECONFIG=`pwd`/_work/$(CLUSTER)/kube.config \
TEST_CMD='$(TEST_CMD)' \
GO='$(GO)' \
TEST_PKGS='$(shell for i in ./pkg/pmem-device-manager ./pkg/imagefile/test; do if ls $$i/*_test.go 2>/dev/null >&2; then echo $$i; fi; done)' \
$(GO) test -count=1 -timeout 0 -v ./test/e2e -args \
$(GO_TEST_E2E) \
-v=5 \
-ginkgo.skip='$(subst $(space),|,$(strip $(subst @,$(space),$(TEST_E2E_SKIP_ALL))))' \
-ginkgo.focus='$(subst $(space),|,$(strip $(subst @,$(space),$(TEST_E2E_FOCUS))))' \
Expand Down

0 comments on commit 2689fb0

Please sign in to comment.