This repository has been archived on 2020-04-12. You can view files and clone it, but cannot push or open issues or pull requests.
tests/run_tests.sh
2014-04-17 18:14:20 +08:00

19 lines
236 B
Bash
Executable File

#!/bin/bash
if [ "$#" == "0" ];then
tests=('sqlite3' 'mysql' 'mymysql' 'postgres' 'mssql')
else
tests=($@)
fi
for i in "${tests[@]}"
do :
cd $i
go test -v
ec=$?
cd -
if [ $ec != "0" ];then
exit $ec
fi
done