Chromium Code Reviews| 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 ShouldRunTest(Config.TEST_TYPE_DEFAULT): |
| 181 if target_os == Config.OS_LINUX and ShouldRunTest(Config.TEST_TYPE_DEFAULT): | 181 if target_os == Config.OS_LINUX: |
| 182 AddEntry("Dart mojom package generate tests", | 182 # Dart mojom package generate.dart script tests: |
| 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 AddEntry("Dart examples tests", |
| 191 ["python", | 193 ["python", os.path.join("examples", "dart", "example_tests.py"), |
| 192 os.path.join("mojo", "dart", "embedder", "snapshotter", "test", | 194 "--build-dir", build_dir]) |
| 193 "dart_snapshotter_test.py"), | |
| 194 "--build-dir=" + build_dir]) | |
| 195 | 195 |
| 196 # Dart analyzer test | 196 # Test of Dart's snapshotter. |
| 197 if ShouldRunTest(Config.TEST_TYPE_DEFAULT, "analyze-dart"): | 197 AddEntry("Dart snapshotter test", |
|
Cutch
2016/01/11 22:17:24
This "analyze-dart" case needs to be kept for the
zra
2016/01/11 22:44:54
Oh, right. Sorry, I misunderstood your initial com
| |
| 198 ["python", | |
| 199 os.path.join("mojo", "dart", "embedder", "snapshotter", "test", | |
| 200 "dart_snapshotter_test.py"), | |
| 201 "--build-dir=" + build_dir]) | |
| 202 | |
| 203 # Dart analyzer test | |
| 198 AddEntry("Dart Package Static Analysis", | 204 AddEntry("Dart Package Static Analysis", |
| 199 ["python", | 205 ["python", |
| 200 os.path.join("mojo", "public", "tools", "dart_pkg_static_analysis.py"), | 206 os.path.join("mojo", "public", "tools", "dart_pkg_static_analysis.py"), |
| 201 "--dart-pkg-dir=" + os.path.join(build_dir, "gen", "dart-pkg"), | 207 "--dart-pkg-dir=" + os.path.join(build_dir, "gen", "dart-pkg"), |
| 202 "--dart-sdk=" + os.path.join("third_party", "dart-sdk", "dart-sdk"), | 208 "--dart-sdk=" + os.path.join("third_party", "dart-sdk", "dart-sdk"), |
| 203 "--package-root=" + os.path.join(build_dir, | 209 "--package-root=" + os.path.join(build_dir, |
| 204 "gen", | 210 "gen", |
| 205 "dart-pkg", | 211 "dart-pkg", |
| 206 "packages")]) | 212 "packages")]) |
| 207 | 213 |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 290 config = Config(**json.load(args.config_file)) | 296 config = Config(**json.load(args.config_file)) |
| 291 test_list = GetTestList(config) | 297 test_list = GetTestList(config) |
| 292 json.dump(test_list, args.test_list_file, indent=2) | 298 json.dump(test_list, args.test_list_file, indent=2) |
| 293 args.test_list_file.write("\n") | 299 args.test_list_file.write("\n") |
| 294 | 300 |
| 295 return 0 | 301 return 0 |
| 296 | 302 |
| 297 | 303 |
| 298 if __name__ == "__main__": | 304 if __name__ == "__main__": |
| 299 sys.exit(main()) | 305 sys.exit(main()) |
| OLD | NEW |