UNPKG

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