Debian Codegraph @

debian/tests/pkg-js/test

raw
1 #!/bin/sh
2
3 TEST_PORT=`shuf -i 3000-65000 -n 1`
4 export TEST_PORT
5 cd tests/test_server
6 node server.js &
7 PID=$!
8 sleep 1
9 curl http://localhost:$TEST_PORT/echo|grep 'Welcome to SockJS'
10
11 kill $PID