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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1507 for entry in timed_tests[:20]: | 1507 for entry in timed_tests[:20]: |
1508 t = FormatTime(entry.duration) | 1508 t = FormatTime(entry.duration) |
1509 sys.stderr.write("%4i (%s) %s\n" % (index, t, entry.GetLabel())) | 1509 sys.stderr.write("%4i (%s) %s\n" % (index, t, entry.GetLabel())) |
1510 index += 1 | 1510 index += 1 |
1511 | 1511 |
1512 return result | 1512 return result |
1513 | 1513 |
1514 | 1514 |
1515 if __name__ == '__main__': | 1515 if __name__ == '__main__': |
1516 sys.exit(Main()) | 1516 sys.exit(Main()) |
OLD | NEW |