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