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

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

Issue 1191253005: Add Observatory mojo_shell hearbeat test (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 6 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
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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 sky_command += ["--builder-name", config.values["builder_name"]] 144 sky_command += ["--builder-name", config.values["builder_name"]]
145 if config.values.get("build_number"): 145 if config.values.get("build_number"):
146 sky_command += ["--build-number", config.values["build_number"]] 146 sky_command += ["--build-number", config.values["build_number"]]
147 if config.values.get("master_name"): 147 if config.values.get("master_name"):
148 sky_command += ["--master-name", config.values["master_name"]] 148 sky_command += ["--master-name", config.values["master_name"]]
149 if config.values.get("test_results_server"): 149 if config.values.get("test_results_server"):
150 sky_command += ["--test-results-server", 150 sky_command += ["--test-results-server",
151 config.values["test_results_server"]] 151 config.values["test_results_server"]]
152 AddXvfbEntry("Sky tests", sky_command) 152 AddXvfbEntry("Sky tests", sky_command)
153 153
154 # Observatory tests (Linux-only):
155 if target_os == Config.OS_LINUX:
156 AddEntry("Dart Observatory tests",
157 ["python",
158 os.path.join("mojo", "dart", "observatory_tester", "runner.py"),
159 "--build-dir=" + build_dir,
160 "--dart-exe=third_party/dart-sdk/dart-sdk/bin/dart"])
161
154 # mojo tools unit tests: 162 # mojo tools unit tests:
155 if ShouldRunTest(Config.TEST_TYPE_DEFAULT, Config.TEST_TYPE_UNIT, "tools"): 163 if ShouldRunTest(Config.TEST_TYPE_DEFAULT, Config.TEST_TYPE_UNIT, "tools"):
156 AddEntry("Mojo tools unit tests", 164 AddEntry("Mojo tools unit tests",
157 ["python", os.path.join("mojo", "tools", "testing", 165 ["python", os.path.join("mojo", "tools", "testing",
158 "mojom_fetcher", 166 "mojom_fetcher",
159 "mojom_fetcher_tests.py")]) 167 "mojom_fetcher_tests.py")])
160 # Perf tests ----------------------------------------------------------------- 168 # Perf tests -----------------------------------------------------------------
161 169
162 if target_os == Config.OS_LINUX and ShouldRunTest(Config.TEST_TYPE_PERF): 170 if target_os == Config.OS_LINUX and ShouldRunTest(Config.TEST_TYPE_PERF):
163 perf_id = "linux_%s" % ("debug" if config.is_debug else "release") 171 perf_id = "linux_%s" % ("debug" if config.is_debug else "release")
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 config = Config(**json.load(args.config_file)) 218 config = Config(**json.load(args.config_file))
211 test_list = GetTestList(config) 219 test_list = GetTestList(config)
212 json.dump(test_list, args.test_list_file, indent=2) 220 json.dump(test_list, args.test_list_file, indent=2)
213 args.test_list_file.write("\n") 221 args.test_list_file.write("\n")
214 222
215 return 0 223 return 0
216 224
217 225
218 if __name__ == "__main__": 226 if __name__ == "__main__":
219 sys.exit(main()) 227 sys.exit(main())
OLDNEW
« no previous file with comments | « mojo/dart/observatory_tester/tester.dart ('k') | sky/engine/core/script/dart_service_isolate/server.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698