Skip to content
This repository has been archived by the owner on Sep 25, 2018. It is now read-only.

Commit

Permalink
Added scxml-test-framework as submodule and created test runner script.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbeard4 committed Apr 1, 2012
1 parent d2d127a commit 14d7c3e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
@@ -0,0 +1,3 @@
[submodule "test/scxml-test-framework"]
path = test/scxml-test-framework
url = git://github.com/jbeard4/scxml-test-framework.git
15 changes: 15 additions & 0 deletions test/run-tests.sh
@@ -0,0 +1,15 @@
npm install request

#start the server
node test-server.js &
#keep the pid (so we can kill it later)
serverpid=$!

#run the client
node scxml-test-framework/lib/test-client.js scxml-test-framework/test/*/*.scxml
status=$?

#kill the server
kill $serverpid

if [ "$status" = '0' ]; then echo SUCCESS; else echo FAILURE; fi;
1 change: 1 addition & 0 deletions test/scxml-test-framework
Submodule scxml-test-framework added at 5aa6b4

0 comments on commit 14d7c3e

Please sign in to comment.