aboutsummaryrefslogtreecommitdiffstats
path: root/tools/test.sh
diff options
context:
space:
mode:
authorEugene Triguba <hello@eugenetriguba.com>2025-10-10 17:42:56 -0400
committerEugene Triguba <hello@eugenetriguba.com>2025-10-10 17:42:56 -0400
commit69809346b7c5c710eca080e5390244be53dc2732 (patch)
tree4fdb6a63437ddd9d27eef5ddfb2cb8c2613dcb89 /tools/test.sh
parentInstall shadow-uidmap instead of shadow (diff)
downloadcli-69809346b7c5c710eca080e5390244be53dc2732.zip
Replace tools with scripts and use them in .build.yml
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 "$@"