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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 'you might miss new crashes in these tests.')), | 228 'you might miss new crashes in these tests.')), |
229 optparse.make_option( | 229 optparse.make_option( |
230 '--smoke', | 230 '--smoke', |
231 action='store_true', | 231 action='store_true', |
232 help='Run just the SmokeTests'), | 232 help='Run just the SmokeTests'), |
233 optparse.make_option( | 233 optparse.make_option( |
234 '--no-smoke', | 234 '--no-smoke', |
235 dest='smoke', | 235 dest='smoke', |
236 action='store_false', | 236 action='store_false', |
237 help='Do not run just the SmokeTests'), | 237 help='Do not run just the SmokeTests'), |
| 238 optparse.make_option( |
| 239 '--image-first-tests', |
| 240 action='append', |
| 241 default=[], |
| 242 dest='image_first_tests', |
| 243 help=('A directory (or test) where the test result will only be
compared with the ' |
| 244 'image baseline if an image baseline is available, and fal
l back to comparison ' |
| 245 'with the text baseline when image baselines are missing.
Specify multiple times ' |
| 246 'to add multiple directories/tests.')), |
238 ])) | 247 ])) |
239 | 248 |
240 option_group_definitions.append( | 249 option_group_definitions.append( |
241 ('Testing Options', [ | 250 ('Testing Options', [ |
242 optparse.make_option( | 251 optparse.make_option( |
243 '--additional-env-var', | 252 '--additional-env-var', |
244 type='string', | 253 type='string', |
245 action='append', | 254 action='append', |
246 default=[], | 255 default=[], |
247 help=('Passes that environment variable to the tests ' | 256 help=('Passes that environment variable to the tests ' |
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
586 _log.debug('\t%s', process) | 595 _log.debug('\t%s', process) |
587 | 596 |
588 return run_details | 597 return run_details |
589 | 598 |
590 finally: | 599 finally: |
591 printer.cleanup() | 600 printer.cleanup() |
592 | 601 |
593 if __name__ == '__main__': | 602 if __name__ == '__main__': |
594 exit_code = main(sys.argv[1:], sys.stdout, sys.stderr) | 603 exit_code = main(sys.argv[1:], sys.stdout, sys.stderr) |
595 sys.exit(exit_code) | 604 sys.exit(exit_code) |
OLD | NEW |