github.com/pf-qiu/concourse/v6@v6.7.3-0.20201207032516-1f455d73275f/atc/scripts/test (about)

     1  #!/bin/bash
     2  
     3  set -e
     4  
     5  not_installed() {
     6    ! command -v $1 > /dev/null 2>&1
     7  }
     8  
     9  atc_dir=$(cd $(dirname $0)/.. && pwd)
    10  
    11  if not_installed ginkgo; then
    12    echo "# ginkgo is not installed! run the following command:"
    13    echo "    go install github.com/onsi/ginkgo/ginkgo"
    14    exit 1
    15  fi
    16  
    17  if not_installed npm; then
    18    echo "# npm is not installed! run the following command:"
    19    echo "    brew install node"
    20    exit 1
    21  fi
    22  
    23  cd $atc_dir
    24  ginkgo -r -p -race "$@"