github.com/psyb0t/mattermost-server@v4.6.1-0.20180125161845-5503a1351abf+incompatible/scripts/test-xprog.sh (about)

     1  #!/usr/bin/env bash
     2  set -e
     3  [[ $1 =~ (github.com.*)/_test ]] && \
     4      echo Testing ${BASH_REMATCH[1]}
     5  coverprofile=`pwd`/cprofile.out
     6  if [[ $1 == *"/enterprise/"* ]]; then
     7      cd "$(dirname "$(dirname "${BASH_SOURCE[0]}")")"
     8  fi
     9  "$@" -test.coverprofile "$coverprofile"