summaryrefslogtreecommitdiff
path: root/src/hub/test-client
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2017-04-23 16:10:11 +0200
committerChristian Pointner <equinox@spreadspace.org>2017-04-23 16:10:11 +0200
commitdb2d54d210edc06a445fde0facb30d1f37576cf1 (patch)
tree48dcee59adf42485eb9b433eadeebf0f67333730 /src/hub/test-client
parentmoved client data to bolt db (diff)
revamp test scripts, simpified tag insertion
Diffstat (limited to 'src/hub/test-client')
-rwxr-xr-xsrc/hub/test-client8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/hub/test-client b/src/hub/test-client
index 8a24c7d..d5756e7 100755
--- a/src/hub/test-client
+++ b/src/hub/test-client
@@ -1,11 +1,14 @@
#!/bin/sh
+
+TEST_D="./test"
+
echo pipe: import sample.json
echo ------------------------
-socat file:../../dat/sample.json,rdonly unix-client:/run/sfive/pipe
+socat file:../../dat/sample.json,rdonly "unix-client:$TEST_D/pipe"
echo pipe-gram: import sample-gram.json
echo ----------------------------------
-while read x; do echo "$x" | socat stdio unix-sendto:/run/sfive/pipegram; done < ../../dat/sample-gram.json
+while read x; do echo "$x" | socat stdio "unix-sendto:$TEST_D/pipegram"; done < ../../dat/sample-gram.json
echo show query result
echo -----------------
@@ -20,4 +23,3 @@ echo ----------
curl -i 'http://localhost:8000/stats'
echo '\n\ndone'
-