mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-21 03:14:58 +00:00
19 lines
350 B
Bash
Executable File
19 lines
350 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
export BASEDIR=$(git rev-parse --show-toplevel)
|
|
export CHECK_SESSIONS=0
|
|
cd $BASEDIR
|
|
|
|
for dir in $(ls -d pt-*)
|
|
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
|