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

Side by Side Diff: frog/scripts/buildbot_annotated_steps.py

Issue 8505040: Additional fixes for the bot (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years, 1 month 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
« no previous file with comments | « no previous file | tests/language/language.status » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 2
3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 """Dart frog buildbot steps 7 """Dart frog buildbot steps
8 8
9 Runs tests for the frog compiler (running on the vm or the self-hosting version) 9 Runs tests for the frog compiler (running on the vm or the self-hosting version)
10 """ 10 """
(...skipping 25 matching lines...) Expand all
36 return (name, mode) 36 return (name, mode)
37 37
38 # TODO(sigmund): delete this convertion when test.py uses the same 38 # TODO(sigmund): delete this convertion when test.py uses the same
39 # configuration we do here. 39 # configuration we do here.
40 def ConvertConfiguration(arch, mode): 40 def ConvertConfiguration(arch, mode):
41 ''' Convert arch/mode into modes/flags for test.py ''' 41 ''' Convert arch/mode into modes/flags for test.py '''
42 # TODO(ngeoffray): do something meaningful for debug. 42 # TODO(ngeoffray): do something meaningful for debug.
43 testpy_mode = 'release' 43 testpy_mode = 'release'
44 flags = None 44 flags = None
45 if mode == 'debug': 45 if mode == 'debug':
46 flags = '--enable_asserts --enable_type_checks' 46 flags = '--checked'
47 return (testpy_mode, flags) 47 return (testpy_mode, flags)
48 48
49 def TestFrog(arch, mode): 49 def TestFrog(arch, mode):
50 """ build and test frog. 50 """ build and test frog.
51 Args: 51 Args:
52 - arch: either 'frog' or 'frogsh' (frog self-hosted) 52 - arch: either 'frog' or 'frogsh' (frog self-hosted)
53 - mode: either 'debug' (with type checks) or 'release' (without) 53 - mode: either 'debug' (with type checks) or 'release' (without)
54 """ 54 """
55 55
56 # Make sure we are in the frog directory 56 # Make sure we are in the frog directory
(...skipping 14 matching lines...) Expand all
71 '--component=' + arch, 71 '--component=' + arch,
72 '--time', 72 '--time',
73 '--report', 73 '--report',
74 '--progress=buildbot', 74 '--progress=buildbot',
75 '-v', 75 '-v',
76 'language', 76 'language',
77 'corelib', 77 'corelib',
78 'isolate', 78 'isolate',
79 'frog'] 79 'frog']
80 if flags: 80 if flags:
81 cmd.extend(['--flag=' + f for f in flags.split(' ')]) 81 cmd.append(flags)
82 82
83 status = subprocess.call(cmd) 83 status = subprocess.call(cmd)
84 if status != 0: 84 if status != 0:
85 return status 85 return status
86 86
87 print ('@@@BUILD_STEP leg only tests@@@') 87 print ('@@@BUILD_STEP leg only tests@@@')
88 cmd = [sys.executable, 88 cmd = [sys.executable,
89 '../tools/test.py', 89 '../tools/test.py',
90 '--mode=' + testpy_mode, 90 '--mode=' + testpy_mode,
91 '--component=leg', 91 '--component=leg',
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 return 1 128 return 1
129 129
130 status = TestFrog(arch, mode) 130 status = TestFrog(arch, mode)
131 if status != 0: 131 if status != 0:
132 print '@@@STEP_FAILURE@@@' 132 print '@@@STEP_FAILURE@@@'
133 return status 133 return status
134 134
135 135
136 if __name__ == '__main__': 136 if __name__ == '__main__':
137 sys.exit(main()) 137 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | tests/language/language.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698