1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/bash
set -m
node ./test-server.js $1 &
sleep 2
if [ -n "$2" ]; then
xdg-open http://localhost:8084/test/index.html
fg %1
else
mocha-phantomjs -t 40000 http://localhost:8084/test/index.html
status=$?
kill %1
exit $status
fi
|