| 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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 "dart-pkg", | 229 "dart-pkg", |
| 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_edk_system_perftests"] | 240 "mojo_edk_system_perftests"] |
| 240 | 241 |
| 241 for test_name in test_names: | 242 for test_name in test_names: |
| 242 command = ["python", | 243 command = ["python", |
| 243 os.path.join("mojo", "tools", "perf_test_runner.py"), | 244 os.path.join("mojo", "tools", "perf_test_runner.py"), |
| 244 "--upload", | 245 "--upload", |
| 245 "--server-url", _PERFORMANCE_DASHBOARD_URL, | 246 "--server-url", _PERFORMANCE_DASHBOARD_URL, |
| 246 "--bot-name", bot_name, | 247 "--bot-name", bot_name, |
| 247 "--test-name", test_name, | 248 "--test-name", test_name, |
| 248 "--perf-data-path", | 249 "--perf-data-path", |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 config = Config(**json.load(args.config_file)) | 315 config = Config(**json.load(args.config_file)) |
| 315 test_list = GetTestList(config) | 316 test_list = GetTestList(config) |
| 316 json.dump(test_list, args.test_list_file, indent=2) | 317 json.dump(test_list, args.test_list_file, indent=2) |
| 317 args.test_list_file.write("\n") | 318 args.test_list_file.write("\n") |
| 318 | 319 |
| 319 return 0 | 320 return 0 |
| 320 | 321 |
| 321 | 322 |
| 322 if __name__ == "__main__": | 323 if __name__ == "__main__": |
| 323 sys.exit(main()) | 324 sys.exit(main()) |
| OLD | NEW |