1*6a54128fSAndroid Build Coastguard Worker#!/bin/sh 2*6a54128fSAndroid Build Coastguard Worker# report stats about test scripts that were run 3*6a54128fSAndroid Build Coastguard Worker 4*6a54128fSAndroid Build Coastguard Workernum_ok=`ls *.ok 2>/dev/null | wc -l` 5*6a54128fSAndroid Build Coastguard Workernum_failed=`ls *.failed 2>/dev/null | wc -l` 6*6a54128fSAndroid Build Coastguard Worker 7*6a54128fSAndroid Build Coastguard Workerecho "$num_ok tests succeeded $num_failed tests failed" 8*6a54128fSAndroid Build Coastguard Worker 9*6a54128fSAndroid Build Coastguard Workertest "$num_failed" -eq 0 && exit 0 10*6a54128fSAndroid Build Coastguard Worker 11*6a54128fSAndroid Build Coastguard Workerecho -n "Tests failed: " 12*6a54128fSAndroid Build Coastguard Workerfor fname in $(ls *.failed); do 13*6a54128fSAndroid Build Coastguard Worker echo -n "${fname%%.failed} " 14*6a54128fSAndroid Build Coastguard Workerdone 15*6a54128fSAndroid Build Coastguard Workerecho "" 16*6a54128fSAndroid Build Coastguard Worker 17*6a54128fSAndroid Build Coastguard Workerexit 1 18