mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-05 20:07:54 +00:00
WIP
This commit is contained in:
15
run-tests.sh
Executable file
15
run-tests.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
BRANCH=$(git rev-parse --abbrev-ref HEAD)
|
||||
MYSQL_VERSION=$(mysql -ss -e "SHOW VARIABLES LIKE 'version'" | cut -f2)
|
||||
LOG_FILE=~/${BRANCH}-${MYSQL_VERSION}.log
|
||||
|
||||
truncate --size=0 ${LOG_FILE}
|
||||
echo "Logging to $LOG_FILE"
|
||||
|
||||
for dir in t/*
|
||||
do
|
||||
echo "$dir"
|
||||
sandbox/test-env restart
|
||||
prove -vw "$dir" | tee -a $LOG_FILE
|
||||
done
|
Reference in New Issue
Block a user