This commit is contained in:
Carlos Salguero
2020-03-30 08:21:05 -03:00
parent 670dd962a9
commit f0ee14d479
5 changed files with 24 additions and 0 deletions

15
run-tests.sh Executable file
View 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