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

Side by Side Diff: tools/bots/cross-vm.py

Issue 15963011: Use run_vm_tests.host to list VM tests if possible (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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
« no previous file with comments | « no previous file | tools/test.dart » ('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 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 2 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
3 # for details. All rights reserved. Use of this source code is governed by a 3 # for details. All rights reserved. Use of this source code is governed by a
4 # BSD-style license that can be found in the LICENSE file. 4 # BSD-style license that can be found in the LICENSE file.
5 5
6 import os 6 import os
7 import re 7 import re
8 import shutil 8 import shutil
9 import sys 9 import sys
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 (checked_recording, checked_recording_out) = record_names( 43 (checked_recording, checked_recording_out) = record_names(
44 'checked_tests', arch, mode) 44 'checked_tests', arch, mode)
45 45
46 temporary_files = [tarball, recording, recording_out, checked_recording, 46 temporary_files = [tarball, recording, recording_out, checked_recording,
47 checked_recording_out] 47 checked_recording_out]
48 bot.Clobber() 48 bot.Clobber()
49 try: 49 try:
50 num_run = int(os.environ['BUILDBOT_ANNOTATED_STEPS_RUN']) 50 num_run = int(os.environ['BUILDBOT_ANNOTATED_STEPS_RUN'])
51 if num_run == 1: 51 if num_run == 1:
52 with bot.BuildStep('Build %s %s' % (arch, mode)): 52 with bot.BuildStep('Build %s %s' % (arch, mode)):
53 args = [sys.executable, build_py, 53 run([sys.executable, build_py,
54 '-m%s' % mode, '--arch=%s' % arch, 'runtime'] 54 '-m%s' % mode, '--arch=%s' % arch, 'runtime'])
55 # We need to build 'run_vm_tests.host' as well to enable
56 # test.py to list the VM tests.
57 run([sys.executable, build_py,
58 '-m%s' % mode, '--arch=%s' % arch, 'run_vm_tests.host'])
55 59
56 run(args)
57 with bot.BuildStep('Create build tarball'): 60 with bot.BuildStep('Create build tarball'):
58 run(['tar', '-cjf', tarball, '--exclude=**/obj', 61 run(['tar', '-cjf', tarball, '--exclude=**/obj',
59 '--exclude=**/obj.host', '--exclude=**/obj.target', 62 '--exclude=**/obj.host', '--exclude=**/obj.target',
60 '--exclude=**/*analyzer*', '--exclude=**/*IA32', 'out/']) 63 '--exclude=**/*analyzer*', '--exclude=**/run_vm_tests.host',
64 'out/'])
61 65
62 with bot.BuildStep('Upload build tarball'): 66 with bot.BuildStep('Upload build tarball'):
63 uri = "%s/%s" % (GCS_BUCKET, tarball) 67 uri = "%s/%s" % (GCS_BUCKET, tarball)
64 run([GSUTIL, 'cp', tarball, uri]) 68 run([GSUTIL, 'cp', tarball, uri])
65 run([GSUTIL, 'setacl', 'public-read', uri]) 69 run([GSUTIL, 'setacl', 'public-read', uri])
66 70
67 with bot.BuildStep('prepare tests'): 71 with bot.BuildStep('prepare tests'):
68 uri = "%s/%s" % (GCS_BUCKET, recording) 72 uri = "%s/%s" % (GCS_BUCKET, recording)
69 run(test_args + ['--mode=' + mode, '--arch=' + arch, 73 run(test_args + ['--mode=' + mode, '--arch=' + arch,
70 '--record_to_file=' + recording]) 74 '--record_to_file=' + recording])
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 mode = target_vm_pattern_match.group(2) 153 mode = target_vm_pattern_match.group(2)
150 target_builder(arch, mode) 154 target_builder(arch, mode)
151 else: 155 else:
152 raise Exception("Unknown builder name %s" % name) 156 raise Exception("Unknown builder name %s" % name)
153 157
154 if __name__ == '__main__': 158 if __name__ == '__main__':
155 try: 159 try:
156 sys.exit(main()) 160 sys.exit(main())
157 except OSError as e: 161 except OSError as e:
158 sys.exit(e.errno) 162 sys.exit(e.errno)
OLDNEW
« no previous file with comments | « no previous file | tools/test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698