github.com/openebs/node-disk-manager@v1.9.1-0.20230225014141-4531f06ffa1e/build/install-test-infra.sh (about)

     1  #!/bin/bash
     2  # Copyright 2018-2020 The OpenEBS Authors. All rights reserved.
     3  #
     4  # Licensed under the Apache License, Version 2.0 (the "License");
     5  # you may not use this file except in compliance with the License.
     6  # You may obtain a copy of the License at
     7  #
     8  #     http://www.apache.org/licenses/LICENSE-2.0
     9  #
    10  # Unless required by applicable law or agreed to in writing, software
    11  # distributed under the License is distributed on an "AS IS" BASIS,
    12  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  # See the License for the specific language governing permissions and
    14  # limitations under the License.
    15  
    16  # Test infrastructure for running integration tests on NDM.
    17  # Currently minikube is used to run the integration tests. Since
    18  # minikube is available only on amd64, integration tests can be run
    19  # only on that platform
    20  
    21  ARCH=$1
    22  
    23  if [ -z "$ARCH" ]; then
    24    echo "Test Infra platform not specified. Exiting. "
    25    exit 1
    26  fi
    27  
    28  if [ "$ARCH" == "amd64" ]; then
    29    curl -Lo minikube https://storage.googleapis.com/minikube/releases/v1.0.0/minikube-linux-amd64
    30    sudo chmod +x minikube
    31    sudo mv minikube /usr/local/bin/
    32  fi