aboutsummaryrefslogtreecommitdiff
path: root/config_test/run_tests
blob: e41db232f4055ad30376afb03b9f61910218651d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/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