diff options
| author | Eugene Triguba <hello@eugenetriguba.com> | 2025-10-10 17:42:56 -0400 |
|---|---|---|
| committer | Eugene Triguba <hello@eugenetriguba.com> | 2025-10-10 17:42:56 -0400 |
| commit | 69809346b7c5c710eca080e5390244be53dc2732 (patch) | |
| tree | 4fdb6a63437ddd9d27eef5ddfb2cb8c2613dcb89 /tools/test.sh | |
| parent | Install shadow-uidmap instead of shadow (diff) | |
| download | cli-69809346b7c5c710eca080e5390244be53dc2732.zip | |
Replace tools with scripts and use them in .build.yml
Diffstat (limited to 'tools/test.sh')
| -rwxr-xr-x | tools/test.sh | 25 |
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 "$@" |