OLD | NEW |
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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 "--package-root=" + os.path.join(build_dir, | 208 "--package-root=" + os.path.join(build_dir, |
209 "gen", | 209 "gen", |
210 "dart-pkg", | 210 "dart-pkg", |
211 "packages")]) | 211 "packages")]) |
212 | 212 |
213 # Perf tests ----------------------------------------------------------------- | 213 # Perf tests ----------------------------------------------------------------- |
214 | 214 |
215 bot_name = "linux_%s" % ("debug" if config.is_debug else "release") | 215 bot_name = "linux_%s" % ("debug" if config.is_debug else "release") |
216 | 216 |
217 if target_os == Config.OS_LINUX and ShouldRunTest(Config.TEST_TYPE_PERF): | 217 if target_os == Config.OS_LINUX and ShouldRunTest(Config.TEST_TYPE_PERF): |
218 test_names = ["mojo_public_system_perftests", | 218 test_names = ["mojo_public_c_system_perftests", |
219 "mojo_public_bindings_perftests", | 219 "mojo_public_cpp_bindings_perftests", |
220 "mojo_edk_system_perftests"] | 220 "mojo_edk_system_perftests"] |
221 | 221 |
222 for test_name in test_names: | 222 for test_name in test_names: |
223 command = ["python", | 223 command = ["python", |
224 os.path.join("mojo", "tools", "perf_test_runner.py"), | 224 os.path.join("mojo", "tools", "perf_test_runner.py"), |
225 "--upload", | 225 "--upload", |
226 "--server-url", _PERFORMANCE_DASHBOARD_URL, | 226 "--server-url", _PERFORMANCE_DASHBOARD_URL, |
227 "--bot-name", bot_name, | 227 "--bot-name", bot_name, |
228 "--test-name", test_name, | 228 "--test-name", test_name, |
229 "--perf-data-path", | 229 "--perf-data-path", |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 config = Config(**json.load(args.config_file)) | 295 config = Config(**json.load(args.config_file)) |
296 test_list = GetTestList(config) | 296 test_list = GetTestList(config) |
297 json.dump(test_list, args.test_list_file, indent=2) | 297 json.dump(test_list, args.test_list_file, indent=2) |
298 args.test_list_file.write("\n") | 298 args.test_list_file.write("\n") |
299 | 299 |
300 return 0 | 300 return 0 |
301 | 301 |
302 | 302 |
303 if __name__ == "__main__": | 303 if __name__ == "__main__": |
304 sys.exit(main()) | 304 sys.exit(main()) |
OLD | NEW |