dialects=("sqlite" "mysql" "postgres" "mssql")
if [[ $(pwd) == *"gorm/tests"* ]]; then
cd ..
fi
for dialect in "${dialects[@]}" ; do
if [ "$GORM_DIALECT" = "" ] || [ "$GORM_DIALECT" = "${dialect}" ]
then
if [ "$GORM_VERBOSE" = "" ]
DEBUG=false GORM_DIALECT=${dialect} go test -race ./...
else
DEBUG=false GORM_DIALECT=${dialect} go test -race -v ./...
done