diff options
Diffstat (limited to 'test')
-rwxr-xr-x | test/run-postgres.sh | 7 | ||||
-rwxr-xr-x | test/run-sqlite.sh | 7 |
2 files changed, 12 insertions, 2 deletions
diff --git a/test/run-postgres.sh b/test/run-postgres.sh index 54e4970ed..029a72793 100755 --- a/test/run-postgres.sh +++ b/test/run-postgres.sh @@ -2,6 +2,11 @@ set -e +# Ensure test args are set. +ARGS=${@}; [ -z "$ARGS" ] && \ +ARGS='./...' + +# Database config. DB_NAME='postgres' DB_USER='postgres' DB_PASS='postgres' @@ -34,4 +39,4 @@ GTS_DB_PORT=${DB_PORT} \ GTS_DB_USER=${DB_USER} \ GTS_DB_PASSWORD=${DB_PASS} \ GTS_DB_DATABASE=${DB_NAME} \ -go test ./... -p 1 ${@}
\ No newline at end of file +go test ./... -p 1 ${ARGS}
\ No newline at end of file diff --git a/test/run-sqlite.sh b/test/run-sqlite.sh index fb5502432..666f88c28 100755 --- a/test/run-sqlite.sh +++ b/test/run-sqlite.sh @@ -2,6 +2,11 @@ set -e +# Ensure test args are set. +ARGS=${@}; [ -z "$ARGS" ] && \ +ARGS='./...' + +# Run the SQLite tests. GTS_DB_TYPE=sqlite \ GTS_DB_ADDRESS=':memory:' \ -go test ./... ${@}
\ No newline at end of file +go test ${ARGS}
\ No newline at end of file |