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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 # FIXME: These options should move onto the ChromiumPort. | 102 # FIXME: These options should move onto the ChromiumPort. |
103 option_group_definitions.append(("Chromium-specific Options", [ | 103 option_group_definitions.append(("Chromium-specific Options", [ |
104 optparse.make_option("--nocheck-sys-deps", action="store_true", | 104 optparse.make_option("--nocheck-sys-deps", action="store_true", |
105 default=False, | 105 default=False, |
106 help="Don't check the system dependencies (themes)"), | 106 help="Don't check the system dependencies (themes)"), |
107 optparse.make_option("--adb-device", | 107 optparse.make_option("--adb-device", |
108 action="append", default=[], | 108 action="append", default=[], |
109 help="Run Android layout tests on these devices."), | 109 help="Run Android layout tests on these devices."), |
110 ])) | 110 ])) |
111 | 111 |
112 option_group_definitions.append(("WebKit Options", [ | |
113 optparse.make_option("--gc-between-tests", action="store_true", default=
False, | |
114 help="Force garbage collection between each test"), | |
115 optparse.make_option("--complex-text", action="store_true", default=Fals
e, | |
116 help="Use the complex text code path for all text (Mac OS X and Wind
ows only)"), | |
117 optparse.make_option("-l", "--leaks", action="store_true", default=False
, | |
118 help="Enable leaks checking (Mac OS X only)"), | |
119 optparse.make_option("-g", "--guard-malloc", action="store_true", defaul
t=False, | |
120 help="Enable Guard Malloc (Mac OS X only)"), | |
121 optparse.make_option("--threaded", action="store_true", default=False, | |
122 help="Run a concurrent JavaScript thread with each test"), | |
123 # FIXME: We should merge this w/ --build-directory and only have one fla
g. | |
124 optparse.make_option("--root", action="store", | |
125 help="Path to a directory containing the executables needed to run t
ests."), | |
126 ])) | |
127 | |
128 option_group_definitions.append(("Results Options", [ | 112 option_group_definitions.append(("Results Options", [ |
129 optparse.make_option("-p", "--pixel", "--pixel-tests", action="store_tru
e", | 113 optparse.make_option("-p", "--pixel", "--pixel-tests", action="store_tru
e", |
130 dest="pixel_tests", help="Enable pixel-to-pixel PNG comparisons"), | 114 dest="pixel_tests", help="Enable pixel-to-pixel PNG comparisons"), |
131 optparse.make_option("--no-pixel", "--no-pixel-tests", action="store_fal
se", | 115 optparse.make_option("--no-pixel", "--no-pixel-tests", action="store_fal
se", |
132 dest="pixel_tests", help="Disable pixel-to-pixel PNG comparisons"), | 116 dest="pixel_tests", help="Disable pixel-to-pixel PNG comparisons"), |
133 optparse.make_option("--no-sample-on-timeout", action="store_false", | 117 optparse.make_option("--no-sample-on-timeout", action="store_false", |
134 dest="sample_on_timeout", help="Don't run sample on timeout (Mac OS
X only)"), | 118 dest="sample_on_timeout", help="Don't run sample on timeout (Mac OS
X only)"), |
135 optparse.make_option("--no-ref-tests", action="store_true", | 119 optparse.make_option("--no-ref-tests", action="store_true", |
136 dest="no_ref_tests", help="Skip all ref tests"), | 120 dest="no_ref_tests", help="Skip all ref tests"), |
137 optparse.make_option("--tolerance", | 121 optparse.make_option("--tolerance", |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 printer.print_config(port.results_directory()) | 363 printer.print_config(port.results_directory()) |
380 | 364 |
381 run_details = manager.run(args) | 365 run_details = manager.run(args) |
382 _log.debug("Testing completed, Exit status: %d" % run_details.exit_code) | 366 _log.debug("Testing completed, Exit status: %d" % run_details.exit_code) |
383 return run_details | 367 return run_details |
384 finally: | 368 finally: |
385 printer.cleanup() | 369 printer.cleanup() |
386 | 370 |
387 if __name__ == '__main__': | 371 if __name__ == '__main__': |
388 sys.exit(main(sys.argv[1:], sys.stdout, sys.stderr)) | 372 sys.exit(main(sys.argv[1:], sys.stdout, sys.stderr)) |
OLD | NEW |