| 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 if ShouldRunTest(Config.TEST_TYPE_DEFAULT, Config.TEST_TYPE_UNIT, "tools"): | 159 if ShouldRunTest(Config.TEST_TYPE_DEFAULT, Config.TEST_TYPE_UNIT, "tools"): |
| 160 AddEntry("Mojo tools unit tests", | 160 AddEntry("Mojo tools unit tests", |
| 161 ["python", os.path.join("mojo", "tools", "testing", | 161 ["python", os.path.join("mojo", "tools", "testing", |
| 162 "mojom_fetcher", | 162 "mojom_fetcher", |
| 163 "mojom_fetcher_tests.py")]) | 163 "mojom_fetcher_tests.py")]) |
| 164 | 164 |
| 165 # Observatory tests (Linux-only): | 165 # Observatory tests (Linux-only): |
| 166 if target_os == Config.OS_LINUX and ShouldRunTest(Config.TEST_TYPE_DEFAULT): | 166 if target_os == Config.OS_LINUX and ShouldRunTest(Config.TEST_TYPE_DEFAULT): |
| 167 AddEntry("Dart Observatory tests", | 167 AddEntry("Dart Observatory tests", |
| 168 ["python", | 168 ["python", |
| 169 os.path.join("mojo", "dart", "observatory_tester", "runner.py"), | 169 os.path.join("mojo", "dart", "unittests", "observatory_tester", |
| 170 "runner.py"), |
| 170 "--build-dir=" + build_dir, | 171 "--build-dir=" + build_dir, |
| 171 "--dart-exe=third_party/dart-sdk/dart-sdk/bin/dart"]) | 172 "--dart-exe=third_party/dart-sdk/dart-sdk/bin/dart"]) |
| 172 AddEntry("Dart HTTP Load test", | 173 AddEntry("Dart HTTP Load test", |
| 173 ["python", | 174 ["python", |
| 174 os.path.join("mojo", "dart", "http_load_test", "runner.py"), | 175 os.path.join("mojo", "dart", "unittests", "http_load_test", |
| 176 "runner.py"), |
| 175 "--build-dir=" + build_dir, | 177 "--build-dir=" + build_dir, |
| 176 "--dart-exe=third_party/dart-sdk/dart-sdk/bin/dart"]) | 178 "--dart-exe=third_party/dart-sdk/dart-sdk/bin/dart"]) |
| 177 | 179 |
| 178 # Dart mojom package generate.dart script tests: | 180 # Dart mojom package generate.dart script tests: |
| 179 if target_os == Config.OS_LINUX and ShouldRunTest(Config.TEST_TYPE_DEFAULT): | 181 if target_os == Config.OS_LINUX and ShouldRunTest(Config.TEST_TYPE_DEFAULT): |
| 180 AddEntry("Dart mojom package generate tests", | 182 AddEntry("Dart mojom package generate tests", |
| 181 [os.path.join("third_party", "dart-sdk", "dart-sdk", "bin", "dart"), | 183 [os.path.join("third_party", "dart-sdk", "dart-sdk", "bin", "dart"), |
| 182 "--checked", | 184 "--checked", |
| 183 "-p", os.path.join(build_dir, "gen", "dart-pkg", "packages"), | 185 "-p", os.path.join(build_dir, "gen", "dart-pkg", "packages"), |
| 184 os.path.join( | 186 os.path.join( |
| 185 "mojo", "dart", "packages", "mojom", "test", "generate_test.dart")]) | 187 "mojo", "dart", "packages", "mojom", "test", "generate_test.dart")]) |
| 186 | 188 |
| 187 if target_os == Config.OS_LINUX and ShouldRunTest(Config.TEST_TYPE_DEFAULT): | 189 if target_os == Config.OS_LINUX and ShouldRunTest(Config.TEST_TYPE_DEFAULT): |
| 188 AddEntry("Dart snapshotter test", | 190 AddEntry("Dart snapshotter test", |
| 189 ["python", | 191 ["python", |
| 190 os.path.join("mojo", "dart", "dart_snapshotter", "test", | 192 os.path.join("mojo", "dart", "embedder", "snapshotter", "test", |
| 191 "dart_snapshotter_test.py"), | 193 "dart_snapshotter_test.py"), |
| 192 "--build-dir=" + build_dir]) | 194 "--build-dir=" + build_dir]) |
| 193 | 195 |
| 194 # Dart analyzer test | 196 # Dart analyzer test |
| 195 if ShouldRunTest(Config.TEST_TYPE_DEFAULT, "analyze-dart"): | 197 if ShouldRunTest(Config.TEST_TYPE_DEFAULT, "analyze-dart"): |
| 196 AddEntry("Dart Package Static Analysis", | 198 AddEntry("Dart Package Static Analysis", |
| 197 ["python", | 199 ["python", |
| 198 os.path.join("mojo", "public", "tools", "dart_pkg_static_analysis.py"), | 200 os.path.join("mojo", "public", "tools", "dart_pkg_static_analysis.py"), |
| 199 "--dart-pkg-dir=" + os.path.join(build_dir, "gen", "dart-pkg"), | 201 "--dart-pkg-dir=" + os.path.join(build_dir, "gen", "dart-pkg"), |
| 200 "--dart-sdk=" + os.path.join("third_party", "dart-sdk", "dart-sdk"), | 202 "--dart-sdk=" + os.path.join("third_party", "dart-sdk", "dart-sdk"), |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 config = Config(**json.load(args.config_file)) | 290 config = Config(**json.load(args.config_file)) |
| 289 test_list = GetTestList(config) | 291 test_list = GetTestList(config) |
| 290 json.dump(test_list, args.test_list_file, indent=2) | 292 json.dump(test_list, args.test_list_file, indent=2) |
| 291 args.test_list_file.write("\n") | 293 args.test_list_file.write("\n") |
| 292 | 294 |
| 293 return 0 | 295 return 0 |
| 294 | 296 |
| 295 | 297 |
| 296 if __name__ == "__main__": | 298 if __name__ == "__main__": |
| 297 sys.exit(main()) | 299 sys.exit(main()) |
| OLD | NEW |