summaryrefslogtreecommitdiff
path: root/src/hub/test-bolt
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2017-04-28 00:12:07 +0200
committerChristian Pointner <equinox@spreadspace.org>2017-04-28 00:12:07 +0200
commit123c16701fe60c3c4d47abfb7d9b3e5f5b931d70 (patch)
treebda867d45307430c3671ed90e1e54e684faa5c2c /src/hub/test-bolt
parentweb uses server to access store now (diff)
forwarding works now
Diffstat (limited to 'src/hub/test-bolt')
-rwxr-xr-xsrc/hub/test-bolt10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/hub/test-bolt b/src/hub/test-bolt
index 9a26b04..1787181 100755
--- a/src/hub/test-bolt
+++ b/src/hub/test-bolt
@@ -1,7 +1,13 @@
#!/bin/sh
+if [ -z "$1" ]; then
+ echo "Usage: $0 <db-name> [ ... args-to-bolt ... ]"
+ exit 1
+fi
+
TEST_D="./test"
-TEST_DB="$TEST_D/db.bolt"
+TEST_DB="$TEST_D/$1.bolt"
+shift
BIN="$(go env GOPATH)/bin/bolt"
if [ ! -x "$BIN" ]; then
@@ -12,4 +18,4 @@ if [ ! -x "$BIN" ]; then
exit 1
fi
-exec "$(go env GOPATH)/bin/bolt" $@ "$TEST_DB"
+exec "$BIN" $@ "$TEST_DB"