diff options
Diffstat (limited to 'src/hub/test-srv-ro')
-rwxr-xr-x | src/hub/test-srv-ro | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/hub/test-srv-ro b/src/hub/test-srv-ro new file mode 100755 index 0000000..56fe440 --- /dev/null +++ b/src/hub/test-srv-ro @@ -0,0 +1,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" -read-only -start-pipe-server -pipe "$TEST_D/pipe" -start-pipegram-server -pipegram "$TEST_D/pipegram" -start-web-server -bind=":8000" |