From: Chris Lattner Date: Sun, 23 Nov 2003 18:12:51 +0000 (+0000) Subject: Add a script I missed X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=ac981ae3e859b5d024fa23364fb7f1eaab78c8e7;p=oota-llvm.git Add a script I missed git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10188 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/projects/Stacker/test/runtests b/projects/Stacker/test/runtests new file mode 100755 index 00000000000..75ac5a61ac2 --- /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))"