github.com/ashishbhate/mattermost-server@v5.11.1+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"