Add Intel copyright header.
[profile/ivi/cowhide.git] / examples / hoofbeats / tests / run.sh
1 #!/bin/sh
2 echo "Starting server..."
3 node tests/server.js >/dev/null &
4
5 echo "Waiting for server to be ready..."
6 sleep 2
7
8 echo "Starting tests..."
9 phantomjs tests/phantom.js "http://localhost:3000/tests"
10
11 echo "Cleaning up..."
12 kill -9 `cat tests/pid.txt` >/dev/null
13 rm tests/pid.txt > /dev/null
14
15 echo "All done."