aboutsummaryrefslogtreecommitdiffstats
path: root/tools/test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/test.sh')
-rwxr-xr-xtools/test.sh25
1 files changed, 0 insertions, 25 deletions
diff --git a/tools/test.sh b/tools/test.sh
deleted file mode 100755
index c03678c..0000000
--- a/tools/test.sh
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/bin/bash
-#
-# Run tests against a particular database.
-#
-# Usage:
-# $ ./tools/test.sh <database-name>
-set +e
-
-SCRIPT_DIR=$(dirname "$0")
-. "$SCRIPT_DIR/lib.sh"
-
-BASE_DIR=$(dirname "$0")/..
-ALLOWED_DBS=("postgresql" "mysql" "mssql" "sqlite3")
-
-function main() {
- local DB_NAME="$1"
- if ! elementIn "$DB_NAME" "${ALLOWED_DBS[@]}"; then
- echo "Error: Invalid database type. Allowed types are: ${ALLOWED_DBS[*]}" >&2
- exit 1
- fi
-
- env $(cat "$BASE_DIR/.env.$DB_NAME" | xargs) go test -p 1 -tags "$DB_NAME" -cover -coverprofile cover.out ./...
-}
-
-main "$@"