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

Side by Side Diff: src/scripts/autotest

Issue 1621006: add iperf and netpipe into autotest prebuild test lists. (Closed)
Patch Set: Created 10 years, 8 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 | « no previous file | no next file » | 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) 2010 The Chromium OS Authors. All rights reserved. 3 # Copyright (c) 2010 The Chromium OS 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 # A python wrapper to call autotest ebuild. 7 # A python wrapper to call autotest ebuild.
8 8
9 import commands, logging, optparse, os, subprocess, sys 9 import commands, logging, optparse, os, subprocess, sys
10 10
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 use_flag = use_flag + ' buildcheck' 139 use_flag = use_flag + ' buildcheck'
140 140
141 board_blacklist_file = ('%s/src/overlays/overlay-%s/autotest-blacklist' % 141 board_blacklist_file = ('%s/src/overlays/overlay-%s/autotest-blacklist' %
142 (os.environ['GCLIENT_ROOT'], options.board)) 142 (os.environ['GCLIENT_ROOT'], options.board))
143 if os.path.exists(board_blacklist_file): 143 if os.path.exists(board_blacklist_file):
144 blacklist = [line.strip() 144 blacklist = [line.strip()
145 for line in open(board_blacklist_file).readlines()] 145 for line in open(board_blacklist_file).readlines()]
146 else: 146 else:
147 blacklist = [] 147 blacklist = []
148 148
149 all_tests = 'compilebench,dbench,disktest,netperf2,ltp,unixbench' 149 all_tests = ('compilebench,dbench,disktest,iperf,netperf2,netpipe,ltp,'
150 'unixbench')
150 site_tests = '../third_party/autotest/files/client/site_tests' 151 site_tests = '../third_party/autotest/files/client/site_tests'
151 for site_test in os.listdir(site_tests): 152 for site_test in os.listdir(site_tests):
152 test_path = os.path.join(site_tests, site_test) 153 test_path = os.path.join(site_tests, site_test)
153 if (os.path.exists(test_path) and os.path.isdir(test_path) 154 if (os.path.exists(test_path) and os.path.isdir(test_path)
154 and site_test not in blacklist): 155 and site_test not in blacklist):
155 all_tests += ',' + site_test 156 all_tests += ',' + site_test
156 157
157 if 'all' == options.build.lower(): 158 if 'all' == options.build.lower():
158 if options.noprompt is not True: 159 if options.noprompt is not True:
159 print 'You want to pre-build all client tests and it may take a long', 160 print 'You want to pre-build all client tests and it may take a long',
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 else: 207 else:
207 ssh_key_file = os.path.join(os.path.dirname(me), 208 ssh_key_file = os.path.join(os.path.dirname(me),
208 'mod_for_test_scripts/ssh_keys/testing_rsa') 209 'mod_for_test_scripts/ssh_keys/testing_rsa')
209 os.chmod(ssh_key_file, 0400) 210 os.chmod(ssh_key_file, 0400)
210 run_autoserv(options.board, args) 211 run_autoserv(options.board, args)
211 212
212 213
213 if __name__ == '__main__': 214 if __name__ == '__main__':
214 main() 215 main()
215 216
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698