1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-30 15:32:52 +01:00
llvm-mirror/projects/Stacker/test/runtests
Brian Gaeke a9447a8995 Do not depend on the path to bash
llvm-svn: 13457
2004-05-11 07:42:19 +00:00

20 lines
363 B
Bash
Executable File

#!/usr/bin/env 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))"