mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
* make test execution not take quadratic compilation time * add -p flag. we can only test one package at a time (for now) * cd to mattermost-server for enterprise * whoops * let's go ahead and make the coverage profiles ready for concurrent test
10 lines
267 B
Bash
Executable File
10 lines
267 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
[[ $1 =~ (github.com.*)/_test ]] && \
|
|
echo Testing ${BASH_REMATCH[1]}
|
|
coverprofile=`pwd`/cprofile.out
|
|
if [[ $1 == *"/enterprise/"* ]]; then
|
|
cd "$(dirname "$(dirname "${BASH_SOURCE[0]}")")"
|
|
fi
|
|
"$@" -test.coverprofile "$coverprofile"
|