mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-21 00:32:23 +00:00
20 lines
355 B
Plaintext
20 lines
355 B
Plaintext
|
#!/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))"
|