Permalink
Browse files

Added scxml-test-framework as submodule and created test runner script.

  • Loading branch information...
1 parent d2d127a commit 14d7c3ed89cec26ec01686ed6851def5dad31410 @jbeard4 committed Apr 1, 2012
Showing with 19 additions and 0 deletions.
  1. +3 −0 .gitmodules
  2. +15 −0 test/run-tests.sh
  3. +1 −0 test/scxml-test-framework
View
@@ -0,0 +1,3 @@
+[submodule "test/scxml-test-framework"]
+ path = test/scxml-test-framework
+ url = git://github.com/jbeard4/scxml-test-framework.git
View
@@ -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;
Submodule scxml-test-framework added at 5aa6b4

0 comments on commit 14d7c3e

Please sign in to comment.