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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 "runner.py"), | 170 "runner.py"), |
171 "--build-dir=" + build_dir, | 171 "--build-dir=" + build_dir, |
172 "--dart-exe=third_party/dart-sdk/dart-sdk/bin/dart"]) | 172 "--dart-exe=third_party/dart-sdk/dart-sdk/bin/dart"]) |
173 AddEntry("Dart HTTP Load test", | 173 AddEntry("Dart HTTP Load test", |
174 ["python", | 174 ["python", |
175 os.path.join("mojo", "dart", "unittests", "http_load_test", | 175 os.path.join("mojo", "dart", "unittests", "http_load_test", |
176 "runner.py"), | 176 "runner.py"), |
177 "--build-dir=" + build_dir, | 177 "--build-dir=" + build_dir, |
178 "--dart-exe=third_party/dart-sdk/dart-sdk/bin/dart"]) | 178 "--dart-exe=third_party/dart-sdk/dart-sdk/bin/dart"]) |
179 | 179 |
180 # Dart mojom package generate.dart script tests: | 180 if target_os == Config.OS_LINUX: |
181 if target_os == Config.OS_LINUX and ShouldRunTest(Config.TEST_TYPE_DEFAULT): | 181 # Dart mojom package generate.dart script tests: |
182 AddEntry("Dart mojom package generate tests", | 182 if ShouldRunTest(Config.TEST_TYPE_DEFAULT): |
183 [os.path.join("third_party", "dart-sdk", "dart-sdk", "bin", "dart"), | 183 AddEntry("Dart mojom package generate tests", |
184 "--checked", | 184 [os.path.join("third_party", "dart-sdk", "dart-sdk", "bin", "dart"), |
185 "-p", os.path.join(build_dir, "gen", "dart-pkg", "packages"), | 185 "--checked", |
186 os.path.join( | 186 "-p", os.path.join(build_dir, "gen", "dart-pkg", "packages"), |
187 "mojo", "dart", "packages", "mojom", "test", "generate_test.dart")]) | 187 os.path.join( |
| 188 "mojo", "dart", "packages", "mojom", "test", |
| 189 "generate_test.dart")]) |
188 | 190 |
189 if target_os == Config.OS_LINUX and ShouldRunTest(Config.TEST_TYPE_DEFAULT): | 191 # Tests of Dart examples. |
190 AddEntry("Dart snapshotter test", | 192 if ShouldRunTest(Config.TEST_TYPE_DEFAULT): |
191 ["python", | 193 AddEntry("Dart examples tests", |
192 os.path.join("mojo", "dart", "embedder", "snapshotter", "test", | 194 ["python", os.path.join("examples", "dart", "example_tests.py"), |
193 "dart_snapshotter_test.py"), | 195 "--build-dir", build_dir]) |
194 "--build-dir=" + build_dir]) | 196 |
| 197 # Test of Dart's snapshotter. |
| 198 if ShouldRunTest(Config.TEST_TYPE_DEFAULT): |
| 199 AddEntry("Dart snapshotter test", |
| 200 ["python", |
| 201 os.path.join("mojo", "dart", "embedder", "snapshotter", "test", |
| 202 "dart_snapshotter_test.py"), |
| 203 "--build-dir=" + build_dir]) |
195 | 204 |
196 # Dart analyzer test | 205 # Dart analyzer test |
197 if ShouldRunTest(Config.TEST_TYPE_DEFAULT, "analyze-dart"): | 206 if ShouldRunTest(Config.TEST_TYPE_DEFAULT, "analyze-dart"): |
198 AddEntry("Dart Package Static Analysis", | 207 AddEntry("Dart Package Static Analysis", |
199 ["python", | 208 ["python", |
200 os.path.join("mojo", "public", "tools", "dart_pkg_static_analysis.py"), | 209 os.path.join("mojo", "public", "tools", "dart_pkg_static_analysis.py"), |
201 "--dart-pkg-dir=" + os.path.join(build_dir, "gen", "dart-pkg"), | 210 "--dart-pkg-dir=" + os.path.join(build_dir, "gen", "dart-pkg"), |
202 "--dart-sdk=" + os.path.join("third_party", "dart-sdk", "dart-sdk"), | 211 "--dart-sdk=" + os.path.join("third_party", "dart-sdk", "dart-sdk"), |
203 "--package-root=" + os.path.join(build_dir, | 212 "--package-root=" + os.path.join(build_dir, |
204 "gen", | 213 "gen", |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 config = Config(**json.load(args.config_file)) | 299 config = Config(**json.load(args.config_file)) |
291 test_list = GetTestList(config) | 300 test_list = GetTestList(config) |
292 json.dump(test_list, args.test_list_file, indent=2) | 301 json.dump(test_list, args.test_list_file, indent=2) |
293 args.test_list_file.write("\n") | 302 args.test_list_file.write("\n") |
294 | 303 |
295 return 0 | 304 return 0 |
296 | 305 |
297 | 306 |
298 if __name__ == "__main__": | 307 if __name__ == "__main__": |
299 sys.exit(main()) | 308 sys.exit(main()) |
OLD | NEW |