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...) 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") |
1232 return result | 1234 return result |
1233 | 1235 |
1234 | 1236 |
1235 def ProcessOptions(options): | 1237 def ProcessOptions(options): |
1236 global VERBOSE | 1238 global VERBOSE |
1237 VERBOSE = options.verbose | 1239 VERBOSE = options.verbose |
1238 options.mode = options.mode.split(',') | 1240 options.mode = options.mode.split(',') |
1239 for mode in options.mode: | 1241 for mode in options.mode: |
1240 if not mode in ['debug', 'release']: | 1242 if not mode in ['debug', 'release']: |
1241 print "Unknown mode %s" % mode | 1243 print "Unknown mode %s" % mode |
(...skipping 22 matching lines...) Loading... |
1264 if options.nostress: | 1266 if options.nostress: |
1265 VARIANT_FLAGS = [[],['--nocrankshaft']] | 1267 VARIANT_FLAGS = [[],['--nocrankshaft']] |
1266 if options.crankshaft: | 1268 if options.crankshaft: |
1267 if options.special_command: | 1269 if options.special_command: |
1268 options.special_command += " --crankshaft" | 1270 options.special_command += " --crankshaft" |
1269 else: | 1271 else: |
1270 options.special_command = "@--crankshaft" | 1272 options.special_command = "@--crankshaft" |
1271 if options.noprof: | 1273 if options.noprof: |
1272 options.scons_flags.append("prof=off") | 1274 options.scons_flags.append("prof=off") |
1273 options.scons_flags.append("profilingsupport=off") | 1275 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" |
1274 return True | 1281 return True |
1275 | 1282 |
1276 | 1283 |
1277 REPORT_TEMPLATE = """\ | 1284 REPORT_TEMPLATE = """\ |
1278 Total: %(total)i tests | 1285 Total: %(total)i tests |
1279 * %(skipped)4d tests will be skipped | 1286 * %(skipped)4d tests will be skipped |
1280 * %(nocrash)4d tests are expected to be flaky but not crash | 1287 * %(nocrash)4d tests are expected to be flaky but not crash |
1281 * %(pass)4d tests are expected to pass | 1288 * %(pass)4d tests are expected to pass |
1282 * %(fail_ok)4d tests are expected to fail that we won't fix | 1289 * %(fail_ok)4d tests are expected to fail that we won't fix |
1283 * %(fail)4d tests are expected to fail that we should fix\ | 1290 * %(fail)4d tests are expected to fail that we should fix\ |
(...skipping 213 matching lines...) Loading... |
1497 for entry in timed_tests[:20]: | 1504 for entry in timed_tests[:20]: |
1498 t = FormatTime(entry.duration) | 1505 t = FormatTime(entry.duration) |
1499 sys.stderr.write("%4i (%s) %s\n" % (index, t, entry.GetLabel())) | 1506 sys.stderr.write("%4i (%s) %s\n" % (index, t, entry.GetLabel())) |
1500 index += 1 | 1507 index += 1 |
1501 | 1508 |
1502 return result | 1509 return result |
1503 | 1510 |
1504 | 1511 |
1505 if __name__ == '__main__': | 1512 if __name__ == '__main__': |
1506 sys.exit(Main()) | 1513 sys.exit(Main()) |
OLD | NEW |