diff options
-rwxr-xr-x | src/hub/test-collector | 4 | ||||
-rwxr-xr-x | src/hub/test-import | 10 | ||||
-rwxr-xr-x | src/hub/test-srv | 3 |
3 files changed, 16 insertions, 1 deletions
diff --git a/src/hub/test-collector b/src/hub/test-collector new file mode 100755 index 0000000..e6ca367 --- /dev/null +++ b/src/hub/test-collector @@ -0,0 +1,4 @@ +#!/bin/sh + +./bin/sfive-hub -db "file:memdb1?mode=memory&cache=shared" -start-pipe-server=false -start-pipegram-server=false -start-web-server -viz-dir "$(pwd)/../viz" -bind=":8000" + diff --git a/src/hub/test-import b/src/hub/test-import new file mode 100755 index 0000000..d1a5044 --- /dev/null +++ b/src/hub/test-import @@ -0,0 +1,10 @@ +#!/bin/sh +echo pipe: import sample.json +echo ------------------------ + +[ -f ../../dat/sample-access.json ] || zcat ../../dat/sample-accesslog.json.gz > ../../dat/sample-accesslog.json + +socat file:../../dat/sample-accesslog.json,rdonly unix-client:/run/sfive/pipe + +echo '\n\ndone' + diff --git a/src/hub/test-srv b/src/hub/test-srv index f21c879..7ba3e7a 100755 --- a/src/hub/test-srv +++ b/src/hub/test-srv @@ -1,4 +1,5 @@ #!/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-web-server -viz-dir "$(pwd)/../viz" +./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" -forward-url="http://localhost:8000" + |