3 # Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
4 # file at the top-level directory of this distribution and at
5 # http://rust-lang.org/COPYRIGHT.
7 # Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
8 # http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
9 # <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
10 # option. This file may not be copied, modified, or distributed
11 # except according to those terms.
16 if __name__ == '__main__':
20 with open(fname) as fd:
22 splitline = line.strip().split(' ')
23 if len(splitline) == 1:
28 if splitline[1] == 'ns/iter':
30 if not summary.has_key(status):
32 summary[status].append(test)
33 summaries.append((fname, summary))
35 return sum(map(lambda (f, s): len(s.get(t, [])), summaries))
36 logfiles = sys.argv[1:]
37 for files in map(glob.glob, logfiles):
40 failed = count('failed')
41 ignored = count('ignored')
42 measured = count('bench')
43 print "summary of %d test runs: %d passed; %d failed; %d ignored; %d measured" % \
44 (len(logfiles), ok, failed, ignored, measured)
48 for f, s in summaries:
49 failures = s.get('failed', [])