blob: fcb9a989bccb37f078d640628ad89dece37ecb77 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/sh
TEST_D="./test"
echo pipe: import sample.json
echo ------------------------
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:$TEST_D/pipegram"; done < ../../dat/sample-gram.json
echo post update
echo -----------
curl -i --data @../../dat/sample-post.json 'http://localhost:8000/updates'
echo show query result
echo -----------------
curl -i 'http://localhost:8000/updates'
echo '\n\ndone'
|