mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-19 02:05:23 +00:00

* Remove trailing spaces * PR-665 - Remove trailing spaces - Updated not stable test t/pt-online-schema-change/preserve_triggers.t - Updated utilities in bin directory * PR-665 - Remove trailing spaces - Fixed typos * PR-665 - Remove trailing spaces - Fixed typos --------- Co-authored-by: Sveta Smirnova <sveta.smirnova@percona.com>
21 lines
419 B
Bash
Executable File
21 lines
419 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
export BASEDIR=$(git rev-parse --show-toplevel)
|
|
export CHECK_SESSIONS=0
|
|
cd $BASEDIR
|
|
|
|
source ${BASEDIR}/src/go/setenv.sh
|
|
|
|
for dir in $(ls -d ./src/go/pt-* ) ./src/go/mongolib
|
|
do
|
|
echo "Running tests at $BASEDIR/$dir"
|
|
cd $BASEDIR/$dir
|
|
go get ./...
|
|
go test -v -coverprofile=coverage.out ./...
|
|
if [ -f coverage.out ]
|
|
then
|
|
go tool cover -func=coverage.out
|
|
rm coverage.out
|
|
fi
|
|
done
|