repo.or.cz
/
unicorn.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Documentation updates
[unicorn.git]
/
test
/
aggregate.rb
blob
1c2cc5ca5306ea8f013a9805a57f6b3199c1848f
1
#!/usr/bin/ruby -n
2
BEGIN { $tests = $assertions = $failures = $errors = 0 }
3
4
$_ =~ /(\d+) tests, (\d+) assertions, (\d+) failures, (\d+) errors/ or next
5
$tests += $1.to_i
6
$assertions += $2.to_i
7
$failures += $3.to_i
8
$errors += $4.to_i
9
10
END {
11
printf("\n%d tests, %d assertions, %d failures, %d errors\n",
12
$tests, $assertions, $failures, $errors)
13
}