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

if [ -z "$1" ]; then
  echo "Usage: $0 <db-name>"
  exit 1
fi

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

mkdir -p "$TEST_D"
rm -f "$TEST_D/pipe" "$TEST_D/pipegram"
exec ./bin/sfive-hub -db "$TEST_DB" -start-pipe-server -pipe "$TEST_D/pipe" -start-pipegram-server -pipegram "$TEST_D/pipegram" -start-web-server -web ":8000"