File: runtests.sh

package info (click to toggle)
libaio 0.3.107-7
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,008 kB
  • ctags: 240
  • sloc: ansic: 1,068; makefile: 176; sh: 14
file content (19 lines) | stat: -rwxr-xr-x 391 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash

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 str="" ; passes=$[passes + 1] ; else str=" -- FAILED" ; fails=$[fails + 1] ; fi
	echo "Completed $this_test with $res$str".
done

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