t/lib.perl: fix Perl integration tests w/o installation
[unicorn.git] / test / aggregate.rb
blob0f32b2f3b2b40859366757faa358fc4f88905d18
1 #!/usr/bin/ruby -n
2 # -*- encoding: binary -*-
3 # frozen_string_literal: false
5 BEGIN { $tests = $assertions = $failures = $errors = 0 }
7 $_ =~ /(\d+) tests, (\d+) assertions, (\d+) failures, (\d+) errors/ or next
8 $tests += $1.to_i
9 $assertions += $2.to_i
10 $failures += $3.to_i
11 $errors += $4.to_i
13 END {
14   printf("\n%d tests, %d assertions, %d failures, %d errors\n",
15          $tests, $assertions, $failures, $errors)