sigs.k8s.io/azuredisk-csi-driver@v1.30.1/test/sanity/run-tests-all-clouds.sh (about) 1 #!/bin/bash 2 3 # Copyright 2019 The Kubernetes Authors. 4 # 5 # Licensed under the Apache License, Version 2.0 (the "License"); 6 # you may not use this file except in compliance with the License. 7 # You may obtain a copy of the License at 8 # 9 # http://www.apache.org/licenses/LICENSE-2.0 10 # 11 # Unless required by applicable law or agreed to in writing, software 12 # distributed under the License is distributed on an "AS IS" BASIS, 13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 # See the License for the specific language governing permissions and 15 # limitations under the License. 16 17 set -euo pipefail 18 19 function install_csi_sanity_bin { 20 echo 'Installing CSI sanity test binary...' 21 mkdir -p $GOPATH/src/github.com/kubernetes-csi 22 pushd $GOPATH/src/github.com/kubernetes-csi 23 export GO111MODULE=off 24 git clone https://github.com/kubernetes-csi/csi-test.git -b v5.0.0 25 pushd csi-test/cmd/csi-sanity 26 make install 27 popd 28 popd 29 } 30 31 if [[ -z "$(command -v csi-sanity)" ]]; then 32 install_csi_sanity_bin 33 fi 34 test/sanity/run-test.sh "nodeid" "$@"