summaryrefslogtreecommitdiff
path: root/src/hub/test-client
diff options
context:
space:
mode:
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'
-