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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 os.path.join("mojo", "dart", "observatory_tester", "runner.py"), | 158 os.path.join("mojo", "dart", "observatory_tester", "runner.py"), |
159 "--build-dir=" + build_dir, | 159 "--build-dir=" + build_dir, |
160 "--dart-exe=third_party/dart-sdk/dart-sdk/bin/dart"]) | 160 "--dart-exe=third_party/dart-sdk/dart-sdk/bin/dart"]) |
161 | 161 |
162 # mojo tools unit tests: | 162 # mojo tools unit tests: |
163 if ShouldRunTest(Config.TEST_TYPE_DEFAULT, Config.TEST_TYPE_UNIT, "tools"): | 163 if ShouldRunTest(Config.TEST_TYPE_DEFAULT, Config.TEST_TYPE_UNIT, "tools"): |
164 AddEntry("Mojo tools unit tests", | 164 AddEntry("Mojo tools unit tests", |
165 ["python", os.path.join("mojo", "tools", "testing", | 165 ["python", os.path.join("mojo", "tools", "testing", |
166 "mojom_fetcher", | 166 "mojom_fetcher", |
167 "mojom_fetcher_tests.py")]) | 167 "mojom_fetcher_tests.py")]) |
| 168 |
| 169 # Dart mojom package generate.dart script tests: |
| 170 if target_os == Config.OS_LINUX: |
| 171 AddEntry("Dart mojom package generate tests", |
| 172 [os.path.join("third_party", "dart-sdk", "dart-sdk", "bin", "dart"), |
| 173 "--checked", |
| 174 "-p", os.path.join("mojo", "dart", "mojom", "packages"), |
| 175 os.path.join("mojo", "dart", "mojom", "test", "generate_test.dart")]) |
| 176 |
168 # Perf tests ----------------------------------------------------------------- | 177 # Perf tests ----------------------------------------------------------------- |
169 | 178 |
170 if target_os == Config.OS_LINUX and ShouldRunTest(Config.TEST_TYPE_PERF): | 179 if target_os == Config.OS_LINUX and ShouldRunTest(Config.TEST_TYPE_PERF): |
171 perf_id = "linux_%s" % ("debug" if config.is_debug else "release") | 180 perf_id = "linux_%s" % ("debug" if config.is_debug else "release") |
172 test_names = ["mojo_public_system_perftests"] | 181 test_names = ["mojo_public_system_perftests"] |
173 | 182 |
174 for test_name in test_names: | 183 for test_name in test_names: |
175 command = ["python", | 184 command = ["python", |
176 os.path.join("mojo", "tools", "perf_test_runner.py"), | 185 os.path.join("mojo", "tools", "perf_test_runner.py"), |
177 "--perf-id", perf_id, | 186 "--perf-id", perf_id, |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 config = Config(**json.load(args.config_file)) | 227 config = Config(**json.load(args.config_file)) |
219 test_list = GetTestList(config) | 228 test_list = GetTestList(config) |
220 json.dump(test_list, args.test_list_file, indent=2) | 229 json.dump(test_list, args.test_list_file, indent=2) |
221 args.test_list_file.write("\n") | 230 args.test_list_file.write("\n") |
222 | 231 |
223 return 0 | 232 return 0 |
224 | 233 |
225 | 234 |
226 if __name__ == "__main__": | 235 if __name__ == "__main__": |
227 sys.exit(main()) | 236 sys.exit(main()) |
OLD | NEW |