| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 import optparse | 6 import optparse |
| 7 import os | 7 import os |
| 8 import subprocess | 8 import subprocess |
| 9 import sys | 9 import sys |
| 10 import time | 10 import time |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 # pi_generator.glibc_release_test | 55 # pi_generator.glibc_release_test |
| 56 # input_event.glibc_debug_test | 56 # input_event.glibc_debug_test |
| 57 # input_event.glibc_release_test | 57 # input_event.glibc_release_test |
| 58 DISABLED_TESTS = [ | 58 DISABLED_TESTS = [ |
| 59 # TODO(binji): Disable 3D examples on linux/win. See | 59 # TODO(binji): Disable 3D examples on linux/win. See |
| 60 # http://crbug.com/262379. | 60 # http://crbug.com/262379. |
| 61 {'name': 'graphics_3d', 'platform': ('win', 'linux')}, | 61 {'name': 'graphics_3d', 'platform': ('win', 'linux')}, |
| 62 # TODO(binji): These tests timeout on the trybots because the NEXEs take | 62 # TODO(binji): These tests timeout on the trybots because the NEXEs take |
| 63 # more than 40 seconds to load (!). See http://crbug.com/280753 | 63 # more than 40 seconds to load (!). See http://crbug.com/280753 |
| 64 {'name': 'nacl_io_test', 'platform': 'win', 'toolchain': 'glibc'}, | 64 {'name': 'nacl_io_test', 'platform': 'win', 'toolchain': 'glibc'}, |
| 65 # We don't test "getting_started/part1" because it would complicate the |
| 66 # example. |
| 67 # TODO(binji): figure out a way to inject the testing code without |
| 68 # modifying the example; maybe an extension? |
| 69 {'name': 'part1'}, |
| 65 ] | 70 ] |
| 66 | 71 |
| 67 def ValidateToolchains(toolchains): | 72 def ValidateToolchains(toolchains): |
| 68 invalid_toolchains = set(toolchains) - set(ALL_TOOLCHAINS) | 73 invalid_toolchains = set(toolchains) - set(ALL_TOOLCHAINS) |
| 69 if invalid_toolchains: | 74 if invalid_toolchains: |
| 70 buildbot_common.ErrorExit('Invalid toolchain(s): %s' % ( | 75 buildbot_common.ErrorExit('Invalid toolchain(s): %s' % ( |
| 71 ', '.join(invalid_toolchains))) | 76 ', '.join(invalid_toolchains))) |
| 72 | 77 |
| 73 | 78 |
| 74 def GetServingDirForProject(desc): | 79 def GetServingDirForProject(desc): |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 | 343 |
| 339 | 344 |
| 340 if __name__ == '__main__': | 345 if __name__ == '__main__': |
| 341 script_name = os.path.basename(sys.argv[0]) | 346 script_name = os.path.basename(sys.argv[0]) |
| 342 try: | 347 try: |
| 343 sys.exit(main(sys.argv)) | 348 sys.exit(main(sys.argv)) |
| 344 except parse_dsc.ValidationError as e: | 349 except parse_dsc.ValidationError as e: |
| 345 buildbot_common.ErrorExit('%s: %s' % (script_name, e)) | 350 buildbot_common.ErrorExit('%s: %s' % (script_name, e)) |
| 346 except KeyboardInterrupt: | 351 except KeyboardInterrupt: |
| 347 buildbot_common.ErrorExit('%s: interrupted' % script_name) | 352 buildbot_common.ErrorExit('%s: interrupted' % script_name) |
| OLD | NEW |