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__':
21 with open(fname) as fd:
23 splitline = line.strip().split(' ')
24 if len(splitline) == 1:
29 if splitline[1] == 'ns/iter':
31 if status not in summary:
33 summary[status].append(test)
34 summaries.append((fname, summary))
37 return sum(map(lambda f: len(f[1].get(t, [])), summaries))
39 logfiles = sys.argv[1:]
40 for files in map(glob.glob, logfiles):
43 failed = count('failed')
44 ignored = count('ignored')
45 measured = count('bench')
46 print("summary of %d test runs: %d passed; %d failed; %d ignored; %d measured" %
47 (len(logfiles), ok, failed, ignored, measured))
51 print("failed tests:")
52 for f, s in summaries:
53 failures = s.get('failed', [])