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

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

Issue 8898043: Run the same leg tests on build bot as in presubmit.py. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years 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 | dart/frog/tests/frog/frog.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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 # Make sure we are in the frog directory 80 # Make sure we are in the frog directory
81 os.chdir(FROG_PATH) 81 os.chdir(FROG_PATH)
82 testpy_mode, flags = ConvertConfiguration(arch, mode) 82 testpy_mode, flags = ConvertConfiguration(arch, mode)
83 83
84 print '@@@BUILD_STEP build frog@@@' 84 print '@@@BUILD_STEP build frog@@@'
85 if subprocess.call( 85 if subprocess.call(
86 [sys.executable, '../tools/build.py', '--mode=' + testpy_mode], 86 [sys.executable, '../tools/build.py', '--mode=' + testpy_mode],
87 env=NO_COLOR_ENV) != 0: 87 env=NO_COLOR_ENV) != 0:
88 return 1 88 return 1
89 89
90 frog_tests = ['language', 'corelib', 'isolate', 'frog',
91 'leg', 'leg_only', 'peg', 'await']
92
90 if arch != 'frogium': # frog and frogsh 93 if arch != 'frogium': # frog and frogsh
91 if TestStep("frog", testpy_mode, arch, 94 if TestStep("frog", testpy_mode, arch, frog_tests, flags) != 0:
92 ['language', 'corelib', 'isolate', 'frog', 'leg', 'peg', 'await'],
93 flags) != 0:
94 return 1 95 return 1
95 96
96 if TestStep("leg only", testpy_mode, 'leg', ['leg_only'], flags) != 0: 97 if TestStep("leg", testpy_mode, 'leg', frog_tests, flags) != 0:
97 return 1 98 return 1
98 else: 99 else:
99 if (TestStep("browser", testpy_mode, 'frogium', 100 if (TestStep("browser", testpy_mode, 'frogium',
100 ['client', 'language', 'corelib', 'isolate', 'frog', 101 ['client', 'language', 'corelib', 'isolate', 'frog',
101 'leg', 'peg', 'await'], flags) != 0): 102 'leg', 'peg', 'await'], flags) != 0):
102 return 1 103 return 1
103 104
104 return 0 105 return 0
105 106
106 def main(): 107 def main():
107 print 'main' 108 print 'main'
108 if len(sys.argv) == 0: 109 if len(sys.argv) == 0:
109 print 'Script pathname not known, giving up.' 110 print 'Script pathname not known, giving up.'
110 return 1 111 return 1
111 112
112 arch, mode = GetBuildInfo() 113 arch, mode = GetBuildInfo()
113 print "arch: %s, mode: %s" % (arch, mode) 114 print "arch: %s, mode: %s" % (arch, mode)
114 if arch is None: 115 if arch is None:
115 return 1 116 return 1
116 117
117 status = TestFrog(arch, mode) 118 status = TestFrog(arch, mode)
118 if status != 0: 119 if status != 0:
119 print '@@@STEP_FAILURE@@@' 120 print '@@@STEP_FAILURE@@@'
120 return status 121 return status
121 122
122 123
123 if __name__ == '__main__': 124 if __name__ == '__main__':
124 sys.exit(main()) 125 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | dart/frog/tests/frog/frog.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698