| 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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 optparse.make_option("--profiler", action="store", | 250 optparse.make_option("--profiler", action="store", |
| 251 help="Output per-test profile information, using the specified profi
ler."), | 251 help="Output per-test profile information, using the specified profi
ler."), |
| 252 optparse.make_option("--driver-logging", action="store_true", | 252 optparse.make_option("--driver-logging", action="store_true", |
| 253 help="Print detailed logging of the driver/content_shell"), | 253 help="Print detailed logging of the driver/content_shell"), |
| 254 optparse.make_option("--disable-breakpad", action="store_true", | 254 optparse.make_option("--disable-breakpad", action="store_true", |
| 255 help="Don't use breakpad to symbolize unexpected crashes."), | 255 help="Don't use breakpad to symbolize unexpected crashes."), |
| 256 optparse.make_option("--use-apache", action="store_true", | 256 optparse.make_option("--use-apache", action="store_true", |
| 257 help="Use Apache instead of LigHTTPd (default is port-specific)."), | 257 help="Use Apache instead of LigHTTPd (default is port-specific)."), |
| 258 optparse.make_option("--no-use-apache", action="store_false", dest="use_
apache", | 258 optparse.make_option("--no-use-apache", action="store_false", dest="use_
apache", |
| 259 help="Use LigHTTPd instead of Apache (default is port-specific)."), | 259 help="Use LigHTTPd instead of Apache (default is port-specific)."), |
| 260 optparse.make_option("--enable-leak-detection", action="store_true", |
| 261 help="Enable the leak detection of DOM objects."), |
| 260 ])) | 262 ])) |
| 261 | 263 |
| 262 option_group_definitions.append(("Miscellaneous Options", [ | 264 option_group_definitions.append(("Miscellaneous Options", [ |
| 263 optparse.make_option("--lint-test-files", action="store_true", | 265 optparse.make_option("--lint-test-files", action="store_true", |
| 264 default=False, help=("Makes sure the test files parse for all " | 266 default=False, help=("Makes sure the test files parse for all " |
| 265 "configurations. Does not run any tests.")), | 267 "configurations. Does not run any tests.")), |
| 266 ])) | 268 ])) |
| 267 | 269 |
| 268 # FIXME: Move these into json_results_generator.py | 270 # FIXME: Move these into json_results_generator.py |
| 269 option_group_definitions.append(("Result JSON Options", [ | 271 option_group_definitions.append(("Result JSON Options", [ |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 369 printer.print_config(port.results_directory()) | 371 printer.print_config(port.results_directory()) |
| 370 | 372 |
| 371 run_details = manager.run(args) | 373 run_details = manager.run(args) |
| 372 _log.debug("Testing completed, Exit status: %d" % run_details.exit_code) | 374 _log.debug("Testing completed, Exit status: %d" % run_details.exit_code) |
| 373 return run_details | 375 return run_details |
| 374 finally: | 376 finally: |
| 375 printer.cleanup() | 377 printer.cleanup() |
| 376 | 378 |
| 377 if __name__ == '__main__': | 379 if __name__ == '__main__': |
| 378 sys.exit(main(sys.argv[1:], sys.stdout, sys.stderr)) | 380 sys.exit(main(sys.argv[1:], sys.stdout, sys.stderr)) |
| OLD | NEW |