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

Side by Side Diff: mojo/tools/get_test_list.py

Issue 1381643003: Run mojo_benchmark on the perf bot. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 2 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/env python 1 #!/usr/bin/env python
2 # Copyright 2014 The Chromium Authors. All rights reserved. 2 # Copyright 2014 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Central list of tests to run (as appropriate for a given config). Add tests 6 """Central list of tests to run (as appropriate for a given config). Add tests
7 to run by modifying this file. 7 to run by modifying this file.
8 8
9 Note that this file is both imported (by mojob.py) and run directly (via a 9 Note that this file is both imported (by mojob.py) and run directly (via a
10 recipe).""" 10 recipe)."""
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 if config.values.get("builder_name"): 205 if config.values.get("builder_name"):
206 command += ["--builder-name", config.values["builder_name"]] 206 command += ["--builder-name", config.values["builder_name"]]
207 if config.values.get("build_number"): 207 if config.values.get("build_number"):
208 command += ["--build-number", config.values["build_number"]] 208 command += ["--build-number", config.values["build_number"]]
209 if config.values.get("master_name"): 209 if config.values.get("master_name"):
210 command += ["--master-name", config.values["master_name"]] 210 command += ["--master-name", config.values["master_name"]]
211 command += [os.path.join(build_dir, test_name)] 211 command += [os.path.join(build_dir, test_name)]
212 212
213 AddEntry(test_name, command) 213 AddEntry(test_name, command)
214 214
215 # Benchmarks -----------------------------------------------------------------
216
217 if target_os == Config.OS_LINUX and ShouldRunTest(Config.TEST_TYPE_PERF):
viettrungluu 2015/10/01 15:22:06 Seems kind of pointless to run them and not record
ppi 2015/10/01 15:25:04 This is meant to catch breakages, e.g. benchmarks
viettrungluu 2015/10/01 19:38:39 This suggests to me that you need actual tests for
218 command = ([os.path.join("mojo", "devtools", "common", "mojo_benchmark"),
219 os.path.join("mojo", "tools", "data", "benchmarks")] +
220 verbose_flags)
221 if not config.is_debug:
222 command.append("--release")
223
224 AddEntry("benchmarks", command)
225
215 # Integration tests ---------------------------------------------------------- 226 # Integration tests ----------------------------------------------------------
216 227
217 if target_os == Config.OS_ANDROID and ShouldRunTest( 228 if target_os == Config.OS_ANDROID and ShouldRunTest(
218 Config.TEST_TYPE_DEFAULT, Config.TEST_TYPE_INTEGRATION): 229 Config.TEST_TYPE_DEFAULT, Config.TEST_TYPE_INTEGRATION):
219 AddEntry("Integration test (MojoTest)", 230 AddEntry("Integration test (MojoTest)",
220 ["python", 231 ["python",
221 os.path.join("build", "android", "test_runner.py"), 232 os.path.join("build", "android", "test_runner.py"),
222 "instrumentation", 233 "instrumentation",
223 "--test-apk=MojoTest", 234 "--test-apk=MojoTest",
224 "--output-directory=%s" % build_dir, 235 "--output-directory=%s" % build_dir,
(...skipping 16 matching lines...) Expand all
241 config = Config(**json.load(args.config_file)) 252 config = Config(**json.load(args.config_file))
242 test_list = GetTestList(config) 253 test_list = GetTestList(config)
243 json.dump(test_list, args.test_list_file, indent=2) 254 json.dump(test_list, args.test_list_file, indent=2)
244 args.test_list_file.write("\n") 255 args.test_list_file.write("\n")
245 256
246 return 0 257 return 0
247 258
248 259
249 if __name__ == "__main__": 260 if __name__ == "__main__":
250 sys.exit(main()) 261 sys.exit(main())
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