From bdafae0a5c7317b72c1b4377963a3f9151235b6d Mon Sep 17 00:00:00 2001 From: Griffin Date: Sun, 5 Nov 2023 10:11:47 +0530 Subject: [PATCH] add test cmd Signed-off-by: Griffin --- hack/e2e-debug.sh | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100755 hack/e2e-debug.sh diff --git a/hack/e2e-debug.sh b/hack/e2e-debug.sh new file mode 100755 index 00000000000..b2eb3937bc3 --- /dev/null +++ b/hack/e2e-debug.sh @@ -0,0 +1,38 @@ +#!/usr/bin/env bash + +# Copyright 2023 The Knative Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +source $(dirname "$0")/../test/e2e-common.sh + +test_name="$1" +test_dir="$2" + +if [[ -z "${test_name}" ]]; then + fail_test "No testname provided" +fi + +if [[ -z "${test_dir}" ]]; then + fail_test "No testdir provided" +fi + +header "Waiting Knative eventing to come up" + +wait_until_pods_running knative-eventing || fail_test "Pods in knative-eventing didn't come up" + +header "Running tests" + +go_test_e2e -timeout=30m -run="${test_name}" "${test_dir}/..." || fail_test "Test(s) failed" + +success \ No newline at end of file