| 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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 optparse.make_option("--additional-env-var", type="string", action="appe
nd", default=[], | 246 optparse.make_option("--additional-env-var", type="string", action="appe
nd", default=[], |
| 247 help="Passes that environment variable to the tests (--additional-en
v-var=NAME=VALUE)"), | 247 help="Passes that environment variable to the tests (--additional-en
v-var=NAME=VALUE)"), |
| 248 optparse.make_option("--profile", action="store_true", | 248 optparse.make_option("--profile", action="store_true", |
| 249 help="Output per-test profile information."), | 249 help="Output per-test profile information."), |
| 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("--no-use-apache", action="store_false", dest="use_
apache", default='true', |
| 257 help="Use LigHTTPd instead of Apache."), |
| 256 ])) | 258 ])) |
| 257 | 259 |
| 258 option_group_definitions.append(("Miscellaneous Options", [ | 260 option_group_definitions.append(("Miscellaneous Options", [ |
| 259 optparse.make_option("--lint-test-files", action="store_true", | 261 optparse.make_option("--lint-test-files", action="store_true", |
| 260 default=False, help=("Makes sure the test files parse for all " | 262 default=False, help=("Makes sure the test files parse for all " |
| 261 "configurations. Does not run any tests.")), | 263 "configurations. Does not run any tests.")), |
| 262 ])) | 264 ])) |
| 263 | 265 |
| 264 # FIXME: Move these into json_results_generator.py | 266 # FIXME: Move these into json_results_generator.py |
| 265 option_group_definitions.append(("Result JSON Options", [ | 267 option_group_definitions.append(("Result JSON Options", [ |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 printer.print_config(port.results_directory()) | 367 printer.print_config(port.results_directory()) |
| 366 | 368 |
| 367 run_details = manager.run(args) | 369 run_details = manager.run(args) |
| 368 _log.debug("Testing completed, Exit status: %d" % run_details.exit_code) | 370 _log.debug("Testing completed, Exit status: %d" % run_details.exit_code) |
| 369 return run_details | 371 return run_details |
| 370 finally: | 372 finally: |
| 371 printer.cleanup() | 373 printer.cleanup() |
| 372 | 374 |
| 373 if __name__ == '__main__': | 375 if __name__ == '__main__': |
| 374 sys.exit(main(sys.argv[1:], sys.stdout, sys.stderr)) | 376 sys.exit(main(sys.argv[1:], sys.stdout, sys.stderr)) |
| OLD | NEW |