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

Side by Side Diff: tools/dom/dom.py

Issue 1697203002: Switch to downloaded SDK executable, drop executables in testing/bin. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « tools/deps/dartium.deps/DEPS ('k') | tools/test.py » ('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) 2013, the Dart project authors. Please see the AUTHORS file 3 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
4 # for details. All rights reserved. Use of this source code is governed by a 4 # for details. All rights reserved. Use of this source code is governed by a
5 # BSD-style license that can be found in the LICENSE file. 5 # BSD-style license that can be found in the LICENSE file.
6 6
7 # A script which makes it easy to execute common DOM-related tasks 7 # A script which makes it easy to execute common DOM-related tasks
8 8
9 import os 9 import os
10 import subprocess 10 import subprocess
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 def test_server(): 141 def test_server():
142 start_test_server(5400, os.path.join('out', 'ReleaseX64')) 142 start_test_server(5400, os.path.join('out', 'ReleaseX64'))
143 143
144 def test_server_dartium(): 144 def test_server_dartium():
145 start_test_server(5500, os.path.join('..', 'out', 'Release')) 145 start_test_server(5500, os.path.join('..', 'out', 'Release'))
146 146
147 def start_test_server(port, build_directory): 147 def start_test_server(port, build_directory):
148 print('Browse tests at ' 148 print('Browse tests at '
149 '\033[94mhttp://localhost:%d/root_build/generated_tests/\033[0m' % port) 149 '\033[94mhttp://localhost:%d/root_build/generated_tests/\033[0m' % port)
150 return call([ 150 return call([
151 utils.DartBinary(), 151 utils.CheckedInSdkExecutable(),
152 os.path.join('tools', 'testing', 'dart', 'http_server.dart'), 152 os.path.join('tools', 'testing', 'dart', 'http_server.dart'),
153 '--port=%d' % port, 153 '--port=%d' % port,
154 '--crossOriginPort=%d' % (port + 1), 154 '--crossOriginPort=%d' % (port + 1),
155 '--network=0.0.0.0', 155 '--network=0.0.0.0',
156 '--build-directory=%s' % build_directory 156 '--build-directory=%s' % build_directory
157 ]) 157 ])
158 158
159 159
160 def call(args): 160 def call(args):
161 print ' '.join(args) 161 print ' '.join(args)
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 help(); 205 help();
206 success = False 206 success = False
207 break 207 break
208 returncode = commands[command][0]() 208 returncode = commands[command][0]()
209 success = success and not bool(returncode) 209 success = success and not bool(returncode)
210 210
211 sys.exit(not success) 211 sys.exit(not success)
212 212
213 if __name__ == '__main__': 213 if __name__ == '__main__':
214 main() 214 main()
OLDNEW
« no previous file with comments | « tools/deps/dartium.deps/DEPS ('k') | tools/test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698