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 1190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1201 result.add_option("--warn-unused", help="Report unused rules", | 1201 result.add_option("--warn-unused", help="Report unused rules", |
1202 default=False, action="store_true") | 1202 default=False, action="store_true") |
1203 result.add_option("-j", help="The number of parallel tasks to run", | 1203 result.add_option("-j", help="The number of parallel tasks to run", |
1204 default=1, type="int") | 1204 default=1, type="int") |
1205 result.add_option("--time", help="Print timing information after running", | 1205 result.add_option("--time", help="Print timing information after running", |
1206 default=False, action="store_true") | 1206 default=False, action="store_true") |
1207 result.add_option("--suppress-dialogs", help="Suppress Windows dialogs for cra shing tests", | 1207 result.add_option("--suppress-dialogs", help="Suppress Windows dialogs for cra shing tests", |
1208 dest="suppress_dialogs", default=True, action="store_true") | 1208 dest="suppress_dialogs", default=True, action="store_true") |
1209 result.add_option("--no-suppress-dialogs", help="Display Windows dialogs for c rashing tests", | 1209 result.add_option("--no-suppress-dialogs", help="Display Windows dialogs for c rashing tests", |
1210 dest="suppress_dialogs", action="store_false") | 1210 dest="suppress_dialogs", action="store_false") |
1211 result.add_option("--shell", help="Path to V8 shell", default="shell") | 1211 result.add_option("--shell", help="Path to V8 shell", default="d8") |
1212 result.add_option("--isolates", help="Whether to test isolates", default=False , action="store_true") | 1212 result.add_option("--isolates", help="Whether to test isolates", default=False , action="store_true") |
1213 result.add_option("--store-unexpected-output", | 1213 result.add_option("--store-unexpected-output", |
1214 help="Store the temporary JS files from tests that fails", | 1214 help="Store the temporary JS files from tests that fails", |
1215 dest="store_unexpected_output", default=True, action="store_true") | 1215 dest="store_unexpected_output", default=True, action="store_true") |
1216 result.add_option("--no-store-unexpected-output", | 1216 result.add_option("--no-store-unexpected-output", |
1217 help="Deletes the temporary JS files from tests that fails", | 1217 help="Deletes the temporary JS files from tests that fails", |
1218 dest="store_unexpected_output", action="store_false") | 1218 dest="store_unexpected_output", action="store_false") |
1219 result.add_option("--stress-only", | 1219 result.add_option("--stress-only", |
1220 help="Only run tests with --always-opt --stress-opt", | 1220 help="Only run tests with --always-opt --stress-opt", |
1221 default=False, action="store_true") | 1221 default=False, action="store_true") |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1265 global VARIANT_FLAGS | 1265 global VARIANT_FLAGS |
1266 if options.stress_only: | 1266 if options.stress_only: |
1267 VARIANT_FLAGS = [['--stress-opt', '--always-opt']] | 1267 VARIANT_FLAGS = [['--stress-opt', '--always-opt']] |
1268 if options.nostress: | 1268 if options.nostress: |
1269 VARIANT_FLAGS = [[],['--nocrankshaft']] | 1269 VARIANT_FLAGS = [[],['--nocrankshaft']] |
1270 if options.crankshaft: | 1270 if options.crankshaft: |
1271 if options.special_command: | 1271 if options.special_command: |
1272 options.special_command += " --crankshaft" | 1272 options.special_command += " --crankshaft" |
1273 else: | 1273 else: |
1274 options.special_command = "@--crankshaft" | 1274 options.special_command = "@--crankshaft" |
1275 if options.shell == "d8": | 1275 if options.shell == "d8": |
Yang
2011/06/29 14:07:35
adding --test as command line option makes things
| |
1276 if options.special_command: | 1276 if options.special_command: |
1277 options.special_command += " --test" | 1277 options.special_command += " --test" |
1278 else: | 1278 else: |
1279 options.special_command = "@--test" | 1279 options.special_command = "@--test" |
1280 if options.noprof: | 1280 if options.noprof: |
1281 options.scons_flags.append("prof=off") | 1281 options.scons_flags.append("prof=off") |
1282 options.scons_flags.append("profilingsupport=off") | 1282 options.scons_flags.append("profilingsupport=off") |
1283 return True | 1283 return True |
1284 | 1284 |
1285 | 1285 |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1506 for entry in timed_tests[:20]: | 1506 for entry in timed_tests[:20]: |
1507 t = FormatTime(entry.duration) | 1507 t = FormatTime(entry.duration) |
1508 sys.stderr.write("%4i (%s) %s\n" % (index, t, entry.GetLabel())) | 1508 sys.stderr.write("%4i (%s) %s\n" % (index, t, entry.GetLabel())) |
1509 index += 1 | 1509 index += 1 |
1510 | 1510 |
1511 return result | 1511 return result |
1512 | 1512 |
1513 | 1513 |
1514 if __name__ == '__main__': | 1514 if __name__ == '__main__': |
1515 sys.exit(Main()) | 1515 sys.exit(Main()) |
OLD | NEW |