aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-11-23 18:12:51 +0000
committerChris Lattner <sabre@nondot.org>2003-11-23 18:12:51 +0000
commitac981ae3e859b5d024fa23364fb7f1eaab78c8e7 (patch)
treec95af99e4745a07fb94a1b950511b9594ed3a0e4
parente44f1db6e69beb9ecb30dff75ca25c4963af7df0 (diff)
downloadexternal_llvm-ac981ae3e859b5d024fa23364fb7f1eaab78c8e7.zip
external_llvm-ac981ae3e859b5d024fa23364fb7f1eaab78c8e7.tar.gz
external_llvm-ac981ae3e859b5d024fa23364fb7f1eaab78c8e7.tar.bz2
Add a script I missed
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10188 91177308-0d34-0410-b5e6-96231b3b80d8
-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))"