summaryrefslogtreecommitdiff
path: root/harness/runtests.sh
blob: bbb20b76f4e0073b3828c1f3e80be3f957036140 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

passes=0
fails=0

echo "Test run starting at" `date`

while [ $# -ge 1 ] ; do
	this_test=$1
	shift
	echo "Starting $this_test"
	$this_test 2>&1
	res=$?
	if [ $res -eq 0 ] ; then passes=$[passes + 1] ; else fails=$[fails + 1] ; fi
	echo "Completed $this_test with $res"
done

echo "Pass: $passes  Fail: $fails"
echo "Test run complete at" `date`