che-operator/build/scripts/oc-tests/oc-test-operator.sh

26 lines
628 B
Bash
Executable File

#!/bin/bash
#
# Copyright (c) 2019-2023 Red Hat, Inc.
# This program and the accompanying materials are made
# available under the terms of the Eclipse Public License 2.0
# which is available at https://www.eclipse.org/legal/epl-2.0/
#
# SPDX-License-Identifier: EPL-2.0
#
# Contributors:
# Red Hat, Inc. - initial API and implementation
#
set -ex
export OPERATOR_REPO=$(dirname "$(dirname "$(dirname "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")")")")
# Stop execution on any error
trap "catchFinish" EXIT SIGINT
runTests() {
. "${OPERATOR_REPO}/build/scripts/olm/test-catalog-from-sources.sh" --verbose
}
runTests