File: tst.sh

package info (click to toggle)
gfarm 2.3.2-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 10,972 kB
  • ctags: 10,894
  • sloc: ansic: 84,510; sh: 13,707; java: 6,866; makefile: 2,286; python: 771; perl: 325; sql: 130; xml: 50; asm: 37; csh: 2
file content (15 lines) | stat: -rwxr-xr-x 240 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

log=log

for tst
do
	msg="`echo $tst | awk '{printf "%-50.50s ... ", $1}'`"
	sh $tst >>$log 2>&1
	exit_code=$?
	case $exit_code in
	0)	echo "$msg PASS";;
	1)	echo "$msg FAIL";;
	*)	echo "$msg exit code = $exit_code";;
	esac
done