]> git.ipfire.org Git - thirdparty/git.git/blame - t/aggregate-results.sh
wrapper: move xmmap() to sha1_file.c
[thirdparty/git.git] / t / aggregate-results.sh
CommitLineData
0a392cb8
MV
1#!/bin/sh
2
3fixed=0
4success=0
5failed=0
6broken=0
7total=0
8
6508eedf 9while read file
0a392cb8
MV
10do
11 while read type value
12 do
300072f4
JH
13 case $type in
14 '')
15 continue ;;
0a392cb8
MV
16 fixed)
17 fixed=$(($fixed + $value)) ;;
18 success)
19 success=$(($success + $value)) ;;
20 failed)
21 failed=$(($failed + $value)) ;;
22 broken)
300072f4 23 broken=$(($broken + $value)) ;;
0a392cb8 24 total)
300072f4 25 total=$(($total + $value)) ;;
0a392cb8
MV
26 esac
27 done <"$file"
28done
29
30printf "%-8s%d\n" fixed $fixed
31printf "%-8s%d\n" success $success
32printf "%-8s%d\n" failed $failed
33printf "%-8s%d\n" broken $broken
34printf "%-8s%d\n" total $total