summaryrefslogtreecommitdiff
path: root/src/hub/test-srv
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2017-05-06 02:30:32 +0200
committerChristian Pointner <equinox@spreadspace.org>2017-05-06 02:30:32 +0200
commit24ffb0a92710acf49119378486409ca3c13ea8de (patch)
tree8c845dc638c7ea2c9c55e579101c24a089aff359 /src/hub/test-srv
parentfix last commit (diff)
parenthandling for forwarder hubs works now (diff)
Merge branch 'bolt'
Diffstat (limited to 'src/hub/test-srv')
-rwxr-xr-xsrc/hub/test-srv13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/hub/test-srv b/src/hub/test-srv
index 254549a..064fa3a 100755
--- a/src/hub/test-srv
+++ b/src/hub/test-srv
@@ -1,4 +1,13 @@
#!/bin/sh
-rm -f /run/sfive/pipe /run/sfive/pipegram
-./bin/sfive-hub -db /var/lib/sfive/db.sqlite -start-pipe-server -pipe /var/run/sfive/pipe -start-pipegram-server -pipegram /var/run/sfive/pipegram -start-web-server -viz-dir "$(pwd)/../viz" -bind=":8001"
+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 -bind=":8000"