forked from istio/istio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathe2e_istio_preinstalled.sh
executable file
·41 lines (34 loc) · 1.46 KB
/
e2e_istio_preinstalled.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
#
# Copyright 2017,2018 Istio Authors. All Rights Reserved.
#
# 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.
#
# Script entry into Istio smoketest run with a k8s cluster with Istio installed.
# This is intended as a smoketest for external callers that require a simple
# script entry point. $WORKSPACE is the root dir into which the Istio repo is
# expected to be cloned at the desired version.
#
# Usage: e2e_istio_preinstalled.sh all|bookinfo|mixer|simple
set -o errexit
set -o nounset
set -o pipefail
[[ $1 == "all" || $1 == "bookinfo" || $1 == "mixer" || $1 == "simple" ]] || { echo "$1 is not a legal test name"; exit 1; }
declare -a tests
[[ $1 == "all" ]] && tests=("bookinfo" "mixer" "simple") || tests=("$1")
cd "$(dirname "${BASH_SOURCE[0]}")"/..
git checkout "${TAG}"
make init
for t in "${tests[@]}"; do
make "e2e_${t}" E2E_ARGS="--skip_setup --namespace=istio-system --istioctl_url=https://storage.googleapis.com/istio-artifacts/pilot/${TAG}/artifacts/istioctl"
done