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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 os.path.join("mojo", "tools", | 148 os.path.join("mojo", "tools", |
149 "run_mojo_python_bindings_tests.py"), | 149 "run_mojo_python_bindings_tests.py"), |
150 "--build-dir=" + build_dir]) | 150 "--build-dir=" + build_dir]) |
151 | 151 |
152 AddEntry("Mojom translator python tests", | 152 AddEntry("Mojom translator python tests", |
153 ["python", | 153 ["python", |
154 os.path.join("mojo", "tools", | 154 os.path.join("mojo", "tools", |
155 "run_mojom_translator_python_tests.py"), | 155 "run_mojom_translator_python_tests.py"), |
156 "--build-dir=" + build_dir]) | 156 "--build-dir=" + build_dir]) |
157 | 157 |
158 # mojo tools unit tests: | |
159 if ShouldRunTest(Config.TEST_TYPE_DEFAULT, Config.TEST_TYPE_UNIT, "tools"): | |
160 AddEntry("Mojo tools unit tests", | |
161 ["python", os.path.join("mojo", "tools", "testing", | |
162 "mojom_fetcher", | |
163 "mojom_fetcher_tests.py")]) | |
164 | |
165 # Observatory tests (Linux-only): | 158 # Observatory tests (Linux-only): |
166 if target_os == Config.OS_LINUX and ShouldRunTest(Config.TEST_TYPE_DEFAULT): | 159 if target_os == Config.OS_LINUX and ShouldRunTest(Config.TEST_TYPE_DEFAULT): |
167 AddEntry("Dart Observatory tests", | 160 AddEntry("Dart Observatory tests", |
168 ["python", | 161 ["python", |
169 os.path.join("mojo", "dart", "unittests", "observatory_tester", | 162 os.path.join("mojo", "dart", "unittests", "observatory_tester", |
170 "runner.py"), | 163 "runner.py"), |
171 "--build-dir=" + build_dir, | 164 "--build-dir=" + build_dir, |
172 "--dart-exe=third_party/dart-sdk/dart-sdk/bin/dart"]) | 165 "--dart-exe=third_party/dart-sdk/dart-sdk/bin/dart"]) |
173 AddEntry("Dart HTTP Load test", | 166 AddEntry("Dart HTTP Load test", |
174 ["python", | 167 ["python", |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 config = Config(**json.load(args.config_file)) | 292 config = Config(**json.load(args.config_file)) |
300 test_list = GetTestList(config) | 293 test_list = GetTestList(config) |
301 json.dump(test_list, args.test_list_file, indent=2) | 294 json.dump(test_list, args.test_list_file, indent=2) |
302 args.test_list_file.write("\n") | 295 args.test_list_file.write("\n") |
303 | 296 |
304 return 0 | 297 return 0 |
305 | 298 |
306 | 299 |
307 if __name__ == "__main__": | 300 if __name__ == "__main__": |
308 sys.exit(main()) | 301 sys.exit(main()) |
OLD | NEW |