aboutsummaryrefslogtreecommitdiffstats
path: root/projects/Stacker/test/runtests
diff options
context:
space:
mode:
Diffstat (limited to 'projects/Stacker/test/runtests')
-rwxr-xr-xprojects/Stacker/test/runtests19
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))"