diff --git a/test/e2e-tests.sh b/test/e2e-tests.sh new file mode 100755 index 00000000000..8ad2a93d6e0 --- /dev/null +++ b/test/e2e-tests.sh @@ -0,0 +1,39 @@ +#!/bin/bash + +# Copyright 2018 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. + +# This script runs the end-to-end tests. + +# If you already have a Knative cluster setup and kubectl pointing +# to it, call this script with the --run-tests arguments and it will use +# the cluster and run the tests. + +# Calling this script without arguments will create a new cluster in +# project $PROJECT_ID, run the tests and delete the cluster. + +source $(dirname $0)/../scripts/e2e-tests.sh + +# Script entry point. + +initialize $@ + +if (( USING_EXISTING_CLUSTER )); then + echo "ERROR: this test isn't intended to run against an existing cluster" + fail_test +fi + +# Test the e2e-tests.sh script by bringing up the test cluster +start_latest_knative_serving || fail_test +success diff --git a/test/presubmit-tests.sh b/test/presubmit-tests.sh index 295a23c764b..57ad79b2f15 100755 --- a/test/presubmit-tests.sh +++ b/test/presubmit-tests.sh @@ -40,7 +40,7 @@ function unit_tests() { } function integration_tests() { - header "TODO(#8): Running integration tests" + ./test/e2e-tests.sh } main $@