| OLD | NEW |
| 1 # Copyright (C) 2010 Google Inc. All rights reserved. | 1 # Copyright (C) 2010 Google Inc. All rights reserved. |
| 2 # Copyright (C) 2010 Gabor Rapcsanyi (rgabor@inf.u-szeged.hu), University of Sze
ged | 2 # Copyright (C) 2010 Gabor Rapcsanyi (rgabor@inf.u-szeged.hu), University of Sze
ged |
| 3 # Copyright (C) 2011 Apple Inc. All rights reserved. | 3 # Copyright (C) 2011 Apple Inc. All rights reserved. |
| 4 # | 4 # |
| 5 # Redistribution and use in source and binary forms, with or without | 5 # Redistribution and use in source and binary forms, with or without |
| 6 # modification, are permitted provided that the following conditions are | 6 # modification, are permitted provided that the following conditions are |
| 7 # met: | 7 # met: |
| 8 # | 8 # |
| 9 # * Redistributions of source code must retain the above copyright | 9 # * Redistributions of source code must retain the above copyright |
| 10 # notice, this list of conditions and the following disclaimer. | 10 # notice, this list of conditions and the following disclaimer. |
| (...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 help="Set the maximum number of locked shards"), | 326 help="Set the maximum number of locked shards"), |
| 327 optparse.make_option( | 327 optparse.make_option( |
| 328 "--nocheck-sys-deps", | 328 "--nocheck-sys-deps", |
| 329 action="store_true", | 329 action="store_true", |
| 330 default=False, | 330 default=False, |
| 331 help="Don't check the system dependencies (themes)"), | 331 help="Don't check the system dependencies (themes)"), |
| 332 optparse.make_option( | 332 optparse.make_option( |
| 333 "--order", | 333 "--order", |
| 334 action="store", | 334 action="store", |
| 335 default="natural", | 335 default="natural", |
| 336 help=("determine the order in which the test cases will be run.
" | 336 help=("Determine the order in which the test cases will be run.
" |
| 337 "'none' == use the order in which the tests were listed " | 337 "'none' == use the order in which the tests were listed " |
| 338 "either in arguments or test list, " | 338 "either in arguments or test list, " |
| 339 "'natural' == use the natural order (default), " | 339 "'natural' == use the natural order (default), " |
| 340 "'random-seeded' == randomize the test order using a fixed
seed, " | 340 "'random' == pseudo-random order. Seed can be specified " |
| 341 "'random' == randomize the test order.")), | 341 "via --seed, otherwise a default seed will be used.")), |
| 342 optparse.make_option( | 342 optparse.make_option( |
| 343 "--profile", | 343 "--profile", |
| 344 action="store_true", | 344 action="store_true", |
| 345 help="Output per-test profile information."), | 345 help="Output per-test profile information."), |
| 346 optparse.make_option( | 346 optparse.make_option( |
| 347 "--profiler", | 347 "--profiler", |
| 348 action="store", | 348 action="store", |
| 349 help="Output per-test profile information, using the specified p
rofiler."), | 349 help="Output per-test profile information, using the specified p
rofiler."), |
| 350 optparse.make_option( | 350 optparse.make_option( |
| 351 "--repeat-each", | 351 "--repeat-each", |
| (...skipping 23 matching lines...) Expand all Loading... |
| 375 help="Run a specified chunk (n:l), the nth of len l, of the layo
ut tests"), | 375 help="Run a specified chunk (n:l), the nth of len l, of the layo
ut tests"), |
| 376 optparse.make_option( | 376 optparse.make_option( |
| 377 "--run-part", | 377 "--run-part", |
| 378 help="Run a specified part (n:m), the nth of m parts, of the lay
out tests"), | 378 help="Run a specified part (n:m), the nth of m parts, of the lay
out tests"), |
| 379 optparse.make_option( | 379 optparse.make_option( |
| 380 "--run-singly", | 380 "--run-singly", |
| 381 action="store_true", | 381 action="store_true", |
| 382 default=False, | 382 default=False, |
| 383 help="DEPRECATED, same as --batch-size=1 --verbose"), | 383 help="DEPRECATED, same as --batch-size=1 --verbose"), |
| 384 optparse.make_option( | 384 optparse.make_option( |
| 385 "--seed", |
| 386 type="int", |
| 387 default=4, # http://xkcd.com/221/ |
| 388 help=("Seed to use for random test order (default: %default). " |
| 389 "Only applicable in combination with --order=random.")), |
| 390 optparse.make_option( |
| 385 "--skipped", | 391 "--skipped", |
| 386 action="store", | 392 action="store", |
| 387 default=None, | 393 default=None, |
| 388 help=("control how tests marked SKIP are run. " | 394 help=("control how tests marked SKIP are run. " |
| 389 "'default' == Skip tests unless explicitly listed on the c
ommand line, " | 395 "'default' == Skip tests unless explicitly listed on the c
ommand line, " |
| 390 "'ignore' == Run them anyway, " | 396 "'ignore' == Run them anyway, " |
| 391 "'only' == only run the SKIP tests, " | 397 "'only' == only run the SKIP tests, " |
| 392 "'always' == always skip, even if listed on the command li
ne.")), | 398 "'always' == always skip, even if listed on the command li
ne.")), |
| 393 optparse.make_option( | 399 optparse.make_option( |
| 394 "--fastest", | 400 "--fastest", |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 577 _log.debug("\t%s", process) | 583 _log.debug("\t%s", process) |
| 578 | 584 |
| 579 return run_details | 585 return run_details |
| 580 | 586 |
| 581 finally: | 587 finally: |
| 582 printer.cleanup() | 588 printer.cleanup() |
| 583 | 589 |
| 584 if __name__ == '__main__': | 590 if __name__ == '__main__': |
| 585 exit_code = main(sys.argv[1:], sys.stdout, sys.stderr) | 591 exit_code = main(sys.argv[1:], sys.stdout, sys.stderr) |
| 586 sys.exit(exit_code) | 592 sys.exit(exit_code) |
| OLD | NEW |