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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 # Dart mojom package generate.dart script tests: | 183 # Dart mojom package generate.dart script tests: |
184 if ShouldRunTest(Config.TEST_TYPE_DEFAULT): | 184 if ShouldRunTest(Config.TEST_TYPE_DEFAULT): |
185 AddEntry("Dart mojom package generate tests", | 185 AddEntry("Dart mojom package generate tests", |
186 [os.path.join("third_party", "dart-sdk", "dart-sdk", "bin", "dart"), | 186 [os.path.join("third_party", "dart-sdk", "dart-sdk", "bin", "dart"), |
187 "--checked", | 187 "--checked", |
188 "-p", os.path.join(build_dir, "gen", "dart-pkg", "packages"), | 188 "-p", os.path.join(build_dir, "gen", "dart-pkg", "packages"), |
189 os.path.join( | 189 os.path.join( |
190 "mojo", "dart", "packages", "mojom", "test", | 190 "mojo", "dart", "packages", "mojom", "test", |
191 "generate_test.dart")]) | 191 "generate_test.dart")]) |
192 | 192 |
| 193 if ShouldRunTest(Config.TEST_TYPE_DEFAULT): |
| 194 AddEntry("Dart mojo package can be imported by a non-mojo embedder", |
| 195 [os.path.join("third_party", "dart-sdk", "dart-sdk", "bin", "dart"), |
| 196 "--checked", |
| 197 "-p", os.path.join(build_dir, "gen", "dart-pkg", "packages"), |
| 198 os.path.join( |
| 199 "mojo", "dart", "packages", "mojo", "test", |
| 200 "standalone_test.dart")]) |
| 201 |
193 # Tests of Dart examples. | 202 # Tests of Dart examples. |
194 if ShouldRunTest(Config.TEST_TYPE_DEFAULT): | 203 if ShouldRunTest(Config.TEST_TYPE_DEFAULT): |
195 AddEntry("Dart examples tests", | 204 AddEntry("Dart examples tests", |
196 ["python", os.path.join("examples", "dart", "example_tests.py"), | 205 ["python", os.path.join("examples", "dart", "example_tests.py"), |
197 "--build-dir", build_dir]) | 206 "--build-dir", build_dir]) |
198 | 207 |
199 # Test of Dart's snapshotter. | 208 # Test of Dart's snapshotter. |
200 if ShouldRunTest(Config.TEST_TYPE_DEFAULT): | 209 if ShouldRunTest(Config.TEST_TYPE_DEFAULT): |
201 AddEntry("Dart snapshotter test", | 210 AddEntry("Dart snapshotter test", |
202 ["python", | 211 ["python", |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 config = Config(**json.load(args.config_file)) | 310 config = Config(**json.load(args.config_file)) |
302 test_list = GetTestList(config) | 311 test_list = GetTestList(config) |
303 json.dump(test_list, args.test_list_file, indent=2) | 312 json.dump(test_list, args.test_list_file, indent=2) |
304 args.test_list_file.write("\n") | 313 args.test_list_file.write("\n") |
305 | 314 |
306 return 0 | 315 return 0 |
307 | 316 |
308 | 317 |
309 if __name__ == "__main__": | 318 if __name__ == "__main__": |
310 sys.exit(main()) | 319 sys.exit(main()) |
OLD | NEW |