diff options
author | Artyom Shalkhakov <artyom.shalkhakov@gmail.com> | 2019-01-12 16:50:26 +0200 |
---|---|---|
committer | Artyom Shalkhakov <artyom.shalkhakov@gmail.com> | 2019-01-12 16:50:26 +0200 |
commit | 726ff63ec6d084f2ef4d65b084ef204d5fcc5eb0 (patch) | |
tree | 5c17ac4244c4324525884dfa4f7cee50aedc326d /tests/endpoints.sh | |
parent | ba1871b3b9cc669c43420f993719690b45326e2f (diff) |
Test case for -endpoints switch
Diffstat (limited to 'tests/endpoints.sh')
-rwxr-xr-x | tests/endpoints.sh | 15 |
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` |