summaryrefslogtreecommitdiff
path: root/src/hub/test-bolt
blob: 9a26b0430865e824339405891d582521170b51ad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

TEST_D="./test"
TEST_DB="$TEST_D/db.bolt"

BIN="$(go env GOPATH)/bin/bolt"
if [ ! -x "$BIN" ]; then
  echo "bolt not found. Please run:"
  echo ""
  echo "  go get -u github.com/boltdb/bolt/..."
  echo ""
  exit 1
fi

exec "$(go env GOPATH)/bin/bolt" $@ "$TEST_DB"