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

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

Issue 2142393002: Add perf tests for async waits using base::MessageLoop. (Closed) Base URL: https://github.com/domokit/mojo.git@work791_async_waiter_perftest
Patch Set: gah Created 4 years, 5 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 | « mojo/environment/async_wait_perftest.cc ('k') | 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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 "packages")]) 230 "packages")])
231 231
232 # Perf tests ----------------------------------------------------------------- 232 # Perf tests -----------------------------------------------------------------
233 233
234 bot_name = "linux_%s" % ("debug" if config.is_debug else "release") 234 bot_name = "linux_%s" % ("debug" if config.is_debug else "release")
235 235
236 if target_os == Config.OS_LINUX and ShouldRunTest(Config.TEST_TYPE_PERF): 236 if target_os == Config.OS_LINUX and ShouldRunTest(Config.TEST_TYPE_PERF):
237 test_names = ["mojo_public_c_system_perftests", 237 test_names = ["mojo_public_c_system_perftests",
238 "mojo_public_cpp_bindings_perftests", 238 "mojo_public_cpp_bindings_perftests",
239 "mojo_public_cpp_environment_perftests", 239 "mojo_public_cpp_environment_perftests",
240 "mojo_edk_system_perftests"] 240 "mojo_edk_system_perftests",
241 "mojo_environment_perftests"]
241 242
242 for test_name in test_names: 243 for test_name in test_names:
243 command = ["python", 244 command = ["python",
244 os.path.join("mojo", "tools", "perf_test_runner.py"), 245 os.path.join("mojo", "tools", "perf_test_runner.py"),
245 "--upload", 246 "--upload",
246 "--server-url", _PERFORMANCE_DASHBOARD_URL, 247 "--server-url", _PERFORMANCE_DASHBOARD_URL,
247 "--bot-name", bot_name, 248 "--bot-name", bot_name,
248 "--test-name", test_name, 249 "--test-name", test_name,
249 "--perf-data-path", 250 "--perf-data-path",
250 os.path.join(build_dir, test_name + "_perf.log")] 251 os.path.join(build_dir, test_name + "_perf.log")]
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 config = Config(**json.load(args.config_file)) 316 config = Config(**json.load(args.config_file))
316 test_list = GetTestList(config) 317 test_list = GetTestList(config)
317 json.dump(test_list, args.test_list_file, indent=2) 318 json.dump(test_list, args.test_list_file, indent=2)
318 args.test_list_file.write("\n") 319 args.test_list_file.write("\n")
319 320
320 return 0 321 return 0
321 322
322 323
323 if __name__ == "__main__": 324 if __name__ == "__main__":
324 sys.exit(main()) 325 sys.exit(main())
OLDNEW
« no previous file with comments | « mojo/environment/async_wait_perftest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698