OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2015 The PDFium Authors. All rights reserved. | 2 # Copyright 2015 The PDFium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 import optparse | 6 import optparse |
7 import os | 7 import os |
8 import re | 8 import re |
9 import subprocess | 9 import subprocess |
10 import sys | 10 import sys |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 input_file_re = re.compile('^[a-zA-Z0-9_.]+[.]in$') | 59 input_file_re = re.compile('^[a-zA-Z0-9_.]+[.]in$') |
60 for input_filename in os.listdir(source_dir): | 60 for input_filename in os.listdir(source_dir): |
61 if input_file_re.match(input_filename): | 61 if input_file_re.match(input_filename): |
62 input_path = os.path.join(source_dir, input_filename) | 62 input_path = os.path.join(source_dir, input_filename) |
63 if os.path.isfile(input_path): | 63 if os.path.isfile(input_path): |
64 if not generate_and_test(input_filename, source_dir, working_dir, | 64 if not generate_and_test(input_filename, source_dir, working_dir, |
65 fixup_path, pdfium_test_path, text_diff_path): | 65 fixup_path, pdfium_test_path, text_diff_path): |
66 failures.append(input_path) | 66 failures.append(input_path) |
67 | 67 |
68 if failures: | 68 if failures: |
| 69 failures.sort() |
69 print '\n\nSummary of Failures:' | 70 print '\n\nSummary of Failures:' |
70 for failure in failures: | 71 for failure in failures: |
71 print failure | 72 print failure |
72 return 1 | 73 return 1 |
73 return 0 | 74 return 0 |
74 | 75 |
75 | 76 |
76 if __name__ == '__main__': | 77 if __name__ == '__main__': |
77 sys.exit(main()) | 78 sys.exit(main()) |
OLD | NEW |