OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # | 2 # |
3 # Copyright 2008 the V8 project authors. All rights reserved. | 3 # Copyright 2008 the V8 project authors. All rights reserved. |
4 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
5 # modification, are permitted provided that the following conditions are | 5 # modification, are permitted provided that the following conditions are |
6 # met: | 6 # met: |
7 # | 7 # |
8 # * Redistributions of source code must retain the above copyright | 8 # * Redistributions of source code must retain the above copyright |
9 # notice, this list of conditions and the following disclaimer. | 9 # notice, this list of conditions and the following disclaimer. |
10 # * Redistributions in binary form must reproduce the above | 10 # * Redistributions in binary form must reproduce the above |
(...skipping 1118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1129 else: | 1129 else: |
1130 print "Architecture %s does not match sim %s" %(options.arch, options.si
mulator) | 1130 print "Architecture %s does not match sim %s" %(options.arch, options.si
mulator) |
1131 return False | 1131 return False |
1132 # Ensure that the simulator argument is handed down to scons. | 1132 # Ensure that the simulator argument is handed down to scons. |
1133 options.scons_flags.append("simulator=" + options.simulator) | 1133 options.scons_flags.append("simulator=" + options.simulator) |
1134 else: | 1134 else: |
1135 # If options.arch is not set by the command line and no simulator setting | 1135 # If options.arch is not set by the command line and no simulator setting |
1136 # was found, set the arch to the guess. | 1136 # was found, set the arch to the guess. |
1137 if options.arch == 'none': | 1137 if options.arch == 'none': |
1138 options.arch = ARCH_GUESS | 1138 options.arch = ARCH_GUESS |
| 1139 options.scons_flags.append("arch=" + options.arch) |
1139 return True | 1140 return True |
1140 | 1141 |
1141 | 1142 |
1142 REPORT_TEMPLATE = """\ | 1143 REPORT_TEMPLATE = """\ |
1143 Total: %(total)i tests | 1144 Total: %(total)i tests |
1144 * %(skipped)4d tests will be skipped | 1145 * %(skipped)4d tests will be skipped |
1145 * %(nocrash)4d tests are expected to be flaky but not crash | 1146 * %(nocrash)4d tests are expected to be flaky but not crash |
1146 * %(pass)4d tests are expected to pass | 1147 * %(pass)4d tests are expected to pass |
1147 * %(fail_ok)4d tests are expected to fail that we won't fix | 1148 * %(fail_ok)4d tests are expected to fail that we won't fix |
1148 * %(fail)4d tests are expected to fail that we should fix\ | 1149 * %(fail)4d tests are expected to fail that we should fix\ |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1339 for entry in timed_tests[:20]: | 1340 for entry in timed_tests[:20]: |
1340 t = FormatTime(entry.duration) | 1341 t = FormatTime(entry.duration) |
1341 sys.stderr.write("%4i (%s) %s\n" % (index, t, entry.GetLabel())) | 1342 sys.stderr.write("%4i (%s) %s\n" % (index, t, entry.GetLabel())) |
1342 index += 1 | 1343 index += 1 |
1343 | 1344 |
1344 return result | 1345 return result |
1345 | 1346 |
1346 | 1347 |
1347 if __name__ == '__main__': | 1348 if __name__ == '__main__': |
1348 sys.exit(Main()) | 1349 sys.exit(Main()) |
OLD | NEW |