github.com/q2/git-lfs@v0.5.1-0.20150410234700-03a0d4cec40e/script/test (about)

     1  #!/bin/sh
     2  #/ Usage: script/test          # run all tests
     3  #/        script/test <subdir> # run just a package's tests
     4  
     5  script/fmt
     6  script/bootstrap
     7  
     8  export LOCALSRCDIR=`pwd`/.vendor/src/github.com/github/git-lfs
     9  mkdir -p `dirname $LOCALSRCDIR`
    10  rm -f $LOCALSRCDIR
    11  ln -s `pwd` $LOCALSRCDIR
    12  
    13  GOPATH="`pwd`/.vendor"
    14  SUITE="./${1:-"..."}"
    15  if [ $# -gt 0 ]; then
    16    shift
    17  fi
    18  PATH=$LOCALSRCDIR/bin:$PATH GOPATH=$GOPATH go test $SUITE -i "$@"
    19  PATH=$LOCALSRCDIR/bin:$PATH GOPATH=$GOPATH go test $SUITE "$@"