diff options
Diffstat (limited to 'projects/Stacker/test/runtests')
-rwxr-xr-x | projects/Stacker/test/runtests | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/projects/Stacker/test/runtests b/projects/Stacker/test/runtests new file mode 100755 index 0000000..75ac5a6 --- /dev/null +++ b/projects/Stacker/test/runtests @@ -0,0 +1,19 @@ +#!/bin/bash +path=$1 +shift +let $((success=0)) +let $((failure=0)) +for tst in $* ; do + result=`$path/$tst` + status="$?" + echo "Test $tst : $result" + if [ $status -eq 0 ] ; then + let $((success++)) + else + let $((failure++)) + fi +done + +echo "Failures : $failure" +echo "Successes: $success" +echo "Total : $((failure+success))" |