Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # | 2 # |
| 3 # Copyright 2012 the V8 project authors. All rights reserved. | 3 # Copyright 2012 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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 283 result.add_option("--no-sorting", "--nosorting", | 283 result.add_option("--no-sorting", "--nosorting", |
| 284 help="Don't sort tests according to duration of last run.", | 284 help="Don't sort tests according to duration of last run.", |
| 285 default=False, dest="no_sorting", action="store_true") | 285 default=False, dest="no_sorting", action="store_true") |
| 286 result.add_option("--no-stress", "--nostress", | 286 result.add_option("--no-stress", "--nostress", |
| 287 help="Don't run crankshaft --always-opt --stress-op test", | 287 help="Don't run crankshaft --always-opt --stress-op test", |
| 288 default=False, dest="no_stress", action="store_true") | 288 default=False, dest="no_stress", action="store_true") |
| 289 result.add_option("--no-variants", "--novariants", | 289 result.add_option("--no-variants", "--novariants", |
| 290 help="Don't run any testing variants", | 290 help="Don't run any testing variants", |
| 291 default=False, dest="no_variants", action="store_true") | 291 default=False, dest="no_variants", action="store_true") |
| 292 result.add_option("--variants", | 292 result.add_option("--variants", |
| 293 help="Comma-separated list of testing variants: %s" % VARIAN TS) | 293 help="Comma-separated list of testing variants;" |
| 294 " default: \"%s\"" % ','.join(VARIANTS)) | |
|
Michael Achenbach
2016/07/29 11:50:25
nit: Use "," for consistency - also below
| |
| 294 result.add_option("--exhaustive-variants", | 295 result.add_option("--exhaustive-variants", |
| 295 default=False, action="store_true", | 296 default=False, action="store_true", |
| 296 help="Use exhaustive set of default variants.") | 297 help="Use exhaustive set of default variants:" |
| 298 " \"%s\"" % ','.join(EXHAUSTIVE_VARIANTS)) | |
| 297 result.add_option("--outdir", help="Base directory with compile output", | 299 result.add_option("--outdir", help="Base directory with compile output", |
| 298 default="out") | 300 default="out") |
| 299 result.add_option("--predictable", | 301 result.add_option("--predictable", |
| 300 help="Compare output of several reruns of each test", | 302 help="Compare output of several reruns of each test", |
| 301 default=False, action="store_true") | 303 default=False, action="store_true") |
| 302 result.add_option("-p", "--progress", | 304 result.add_option("-p", "--progress", |
| 303 help=("The style of progress indicator" | 305 help=("The style of progress indicator" |
| 304 " (verbose, dots, color, mono)"), | 306 " (verbose, dots, color, mono)"), |
| 305 choices=progress.PROGRESS_INDICATORS.keys(), default="mono") | 307 choices=progress.PROGRESS_INDICATORS.keys(), default="mono") |
| 306 result.add_option("--quickcheck", default=False, action="store_true", | 308 result.add_option("--quickcheck", default=False, action="store_true", |
| (...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 870 "--coverage-dir=%s" % options.sancov_dir]) | 872 "--coverage-dir=%s" % options.sancov_dir]) |
| 871 except: | 873 except: |
| 872 print >> sys.stderr, "Error: Merging sancov files failed." | 874 print >> sys.stderr, "Error: Merging sancov files failed." |
| 873 exit_code = 1 | 875 exit_code = 1 |
| 874 | 876 |
| 875 return exit_code | 877 return exit_code |
| 876 | 878 |
| 877 | 879 |
| 878 if __name__ == "__main__": | 880 if __name__ == "__main__": |
| 879 sys.exit(Main()) | 881 sys.exit(Main()) |
| OLD | NEW |