about summary refs log tree commit diff
path: root/bskylink/tests/infra/with-test-db.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bskylink/tests/infra/with-test-db.sh')
-rwxr-xr-xbskylink/tests/infra/with-test-db.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/bskylink/tests/infra/with-test-db.sh b/bskylink/tests/infra/with-test-db.sh
new file mode 100755
index 000000000..cc083491a
--- /dev/null
+++ b/bskylink/tests/infra/with-test-db.sh
@@ -0,0 +1,9 @@
+#!/usr/bin/env sh
+
+# Example usage:
+# ./with-test-db.sh psql postgresql://pg:password@localhost:5433/postgres -c 'select 1;'
+
+dir=$(dirname $0)
+. ${dir}/_common.sh
+
+SERVICES="db_test" main "$@"