summaryrefslogtreecommitdiff
path: root/tests/endpoints.sh
blob: 1d3289a5b300dc928a5f98abebd91b63ee225a8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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`