diff --git a/Makefile b/Makefile index c59c7ad0a..ebf920d69 100644 --- a/Makefile +++ b/Makefile @@ -165,8 +165,13 @@ test-e2e-upgrade: manifests test-e2e: test-e2e-operator test-e2e-handler -test-e2e-ocp: - ./hack/ocp-e2e-tests.sh +test-e2e-ocp: test-e2e-handler-ocp # deprecated. Use test-e2e-handler-ocp instead + +test-e2e-handler-ocp: + ./hack/ocp-e2e-tests-handler.sh + +test-e2e-operator-ocp: + ./hack/ocp-e2e-tests-operator.sh cluster-up: ./cluster/up.sh diff --git a/hack/ocp-e2e-tests.sh b/hack/ocp-e2e-tests-handler.sh similarity index 100% rename from hack/ocp-e2e-tests.sh rename to hack/ocp-e2e-tests-handler.sh diff --git a/hack/ocp-e2e-tests-operator.sh b/hack/ocp-e2e-tests-operator.sh new file mode 100755 index 000000000..ff82b4b38 --- /dev/null +++ b/hack/ocp-e2e-tests-operator.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +# Make sure to set the IMAGE_REPO env variable to your quay.io username +# before running this script. + +# Additionally, the e2e tests rely on extra nics being configured on the +# node. If running from dev-scripts, it will be necessary to configure it to +# deploy the extra nics. +# See https://github.com/openshift-metal3/dev-scripts/pull/1286 for an example. + +set -ex + +export KUBEVIRT_PROVIDER=external +export IMAGE_BUILDER=podman +export DEV_IMAGE_REGISTRY=quay.io +export KUBEVIRTCI_RUNTIME=podman + +make cluster-sync-operator +make test-e2e-operator