1 |
|
2 |
|
3 | #start the server
|
4 | #assume rhino version 1.7R3
|
5 | rhino -debug -modules ../lib -main rhino-test-server.js &
|
6 |
|
7 | #keep the pid (so we can kill it later)
|
8 | serverpid=$!
|
9 |
|
10 | sleep 1
|
11 |
|
12 | #run the client
|
13 | node scxml-test-framework/lib/test-client.js scxml-test-framework/test/*/*.scxml
|
14 | status=$?
|
15 |
|
16 | #kill the server
|
17 | kill $serverpid
|
18 |
|
19 | if [ "$status" = '0' ]; then echo SUCCESS; else echo FAILURE; fi;
|
20 |
|
21 | exit $status
|