pkg-monitoring-plugins/config_test/run_tests
2006-01-20 18:48:40 +00:00

17 lines
237 B
Bash
Executable file

#!/bin/ksh
i=0
success=0
fail=0
while [[ $i -lt $1 ]] ; do
./child_test
if [[ $? -eq 0 ]] ; then
success=$(($success+1))
else
fail=$((fail+1))
fi
i=$(($i+1))
done
print "Success=$success Fail=$fail"
[[ $fail -gt 0 ]] && exit 1