summaryrefslogtreecommitdiff
path: root/tests/endpoints.sh
diff options
context:
space:
mode:
authorGravatar Artyom Shalkhakov <artyom.shalkhakov@gmail.com>2019-01-12 16:50:26 +0200
committerGravatar Artyom Shalkhakov <artyom.shalkhakov@gmail.com>2019-01-12 16:50:26 +0200
commit726ff63ec6d084f2ef4d65b084ef204d5fcc5eb0 (patch)
tree5c17ac4244c4324525884dfa4f7cee50aedc326d /tests/endpoints.sh
parentba1871b3b9cc669c43420f993719690b45326e2f (diff)
Test case for -endpoints switch
Diffstat (limited to 'tests/endpoints.sh')
-rwxr-xr-xtests/endpoints.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/endpoints.sh b/tests/endpoints.sh
new file mode 100755
index 00000000..1d3289a5
--- /dev/null
+++ b/tests/endpoints.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+TEST=endpoints
+TESTPID=/tmp/$TEST.pid
+TESTENDPOINTS=/tmp/$TEST.json
+TESTSRV=./$TEST.exe
+
+rm -f $TESTENDPOINTS $TESTPID $TESTSRV
+../bin/urweb -debug -boot -noEmacs -endpoints $TESTENDPOINTS "$TEST" || exit 1
+
+$TESTSRV -q -a 127.0.0.1 &
+echo $! >> $TESTPID
+sleep 1
+python3 $TEST.py
+kill `cat $TESTPID`