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 1211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1222 help="Run with the --crankshaft flag", | 1222 help="Run with the --crankshaft flag", |
1223 default=False, action="store_true") | 1223 default=False, action="store_true") |
1224 result.add_option("--shard-count", | 1224 result.add_option("--shard-count", |
1225 help="Split testsuites into this number of shards", | 1225 help="Split testsuites into this number of shards", |
1226 default=1, type="int") | 1226 default=1, type="int") |
1227 result.add_option("--shard-run", | 1227 result.add_option("--shard-run", |
1228 help="Run this shard from the split up tests.", | 1228 help="Run this shard from the split up tests.", |
1229 default=1, type="int") | 1229 default=1, type="int") |
1230 result.add_option("--noprof", help="Disable profiling support", | 1230 result.add_option("--noprof", help="Disable profiling support", |
1231 default=False) | 1231 default=False) |
1232 result.add_option("--hardfloat", help="use hardware floating point ABI", | |
1233 default=False, action="store_true") | |
1234 return result | 1232 return result |
1235 | 1233 |
1236 | 1234 |
1237 def ProcessOptions(options): | 1235 def ProcessOptions(options): |
1238 global VERBOSE | 1236 global VERBOSE |
1239 VERBOSE = options.verbose | 1237 VERBOSE = options.verbose |
1240 options.mode = options.mode.split(',') | 1238 options.mode = options.mode.split(',') |
1241 for mode in options.mode: | 1239 for mode in options.mode: |
1242 if not mode in ['debug', 'release']: | 1240 if not mode in ['debug', 'release']: |
1243 print "Unknown mode %s" % mode | 1241 print "Unknown mode %s" % mode |
(...skipping 22 matching lines...) Expand all Loading... |
1266 if options.nostress: | 1264 if options.nostress: |
1267 VARIANT_FLAGS = [[],['--nocrankshaft']] | 1265 VARIANT_FLAGS = [[],['--nocrankshaft']] |
1268 if options.crankshaft: | 1266 if options.crankshaft: |
1269 if options.special_command: | 1267 if options.special_command: |
1270 options.special_command += " --crankshaft" | 1268 options.special_command += " --crankshaft" |
1271 else: | 1269 else: |
1272 options.special_command = "@--crankshaft" | 1270 options.special_command = "@--crankshaft" |
1273 if options.noprof: | 1271 if options.noprof: |
1274 options.scons_flags.append("prof=off") | 1272 options.scons_flags.append("prof=off") |
1275 options.scons_flags.append("profilingsupport=off") | 1273 options.scons_flags.append("profilingsupport=off") |
1276 if options.hardfloat: | |
1277 if options.special_command: | |
1278 options.special_command += " --hardfloat" | |
1279 else: | |
1280 options.special_command = "@--hardfloat" | |
1281 return True | 1274 return True |
1282 | 1275 |
1283 | 1276 |
1284 REPORT_TEMPLATE = """\ | 1277 REPORT_TEMPLATE = """\ |
1285 Total: %(total)i tests | 1278 Total: %(total)i tests |
1286 * %(skipped)4d tests will be skipped | 1279 * %(skipped)4d tests will be skipped |
1287 * %(nocrash)4d tests are expected to be flaky but not crash | 1280 * %(nocrash)4d tests are expected to be flaky but not crash |
1288 * %(pass)4d tests are expected to pass | 1281 * %(pass)4d tests are expected to pass |
1289 * %(fail_ok)4d tests are expected to fail that we won't fix | 1282 * %(fail_ok)4d tests are expected to fail that we won't fix |
1290 * %(fail)4d tests are expected to fail that we should fix\ | 1283 * %(fail)4d tests are expected to fail that we should fix\ |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1504 for entry in timed_tests[:20]: | 1497 for entry in timed_tests[:20]: |
1505 t = FormatTime(entry.duration) | 1498 t = FormatTime(entry.duration) |
1506 sys.stderr.write("%4i (%s) %s\n" % (index, t, entry.GetLabel())) | 1499 sys.stderr.write("%4i (%s) %s\n" % (index, t, entry.GetLabel())) |
1507 index += 1 | 1500 index += 1 |
1508 | 1501 |
1509 return result | 1502 return result |
1510 | 1503 |
1511 | 1504 |
1512 if __name__ == '__main__': | 1505 if __name__ == '__main__': |
1513 sys.exit(Main()) | 1506 sys.exit(Main()) |
OLD | NEW |