Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(900)

Side by Side Diff: native_client_sdk/src/build_tools/test_projects.py

Issue 23661005: [NaCl SDK] Add a very simple getting_started example at top-level. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add hello_tutorial.nmf Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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)
OLDNEW
« no previous file with comments | « native_client_sdk/src/build_tools/sdk_files.list ('k') | native_client_sdk/src/build_tools/test_sdk.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698