Revision 235537a07ef569feec628fd1da6730b63eafdc9b authored by Jiang Xin on 19 February 2013, 05:36:11 UTC, committed by Jiang Xin on 19 February 2013, 05:36:11 UTC
Generate po/git.pot from v1.8.2-rc0-16-g20a59 for git v1.8.2
l10n round 3.

Signed-off-by: Jiang Xin <worldhello.net@gmail.com>
1 parent 20a599e
Raw File
aggregate-results.sh
#!/bin/sh

failed_tests=
fixed=0
success=0
failed=0
broken=0
total=0

while read file
do
	while read type value
	do
		case $type in
		'')
			continue ;;
		fixed)
			fixed=$(($fixed + $value)) ;;
		success)
			success=$(($success + $value)) ;;
		failed)
			failed=$(($failed + $value))
			if test $value != 0
			then
				testnum=$(expr "$file" : 'test-results/\(t[0-9]*\)-')
				failed_tests="$failed_tests $testnum"
			fi
			;;
		broken)
			broken=$(($broken + $value)) ;;
		total)
			total=$(($total + $value)) ;;
		esac
	done <"$file"
done

if test -n "$failed_tests"
then
	printf "\nfailed test(s):$failed_tests\n\n"
fi

printf "%-8s%d\n" fixed $fixed
printf "%-8s%d\n" success $success
printf "%-8s%d\n" failed $failed
printf "%-8s%d\n" broken $broken
printf "%-8s%d\n" total $total
back to top