summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarkus Grüneis <gimpf@gimpf.org>2014-10-25 16:04:36 +0200
committerMarkus Grüneis <gimpf@gimpf.org>2014-10-25 16:04:36 +0200
commitc4a5c9f5cbd4a230862103d54866a49db74956bb (patch)
treea7e74e9f27ee82aa999e0e13a909696af7dba501 /src
parenthub: Use actor for Stats and GetUpdatesAfter queries. (diff)
hub: Update example/test scripts for hub.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/hub/test-collector4
-rwxr-xr-xsrc/hub/test-import10
-rwxr-xr-xsrc/hub/test-srv3
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"
+