| 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 "mojom_fetcher_tests.py")]) | 173 "mojom_fetcher_tests.py")]) |
| 174 | 174 |
| 175 # Dart mojom package generate.dart script tests: | 175 # Dart mojom package generate.dart script tests: |
| 176 if target_os == Config.OS_LINUX: | 176 if target_os == Config.OS_LINUX: |
| 177 AddEntry("Dart mojom package generate tests", | 177 AddEntry("Dart mojom package generate tests", |
| 178 [os.path.join("third_party", "dart-sdk", "dart-sdk", "bin", "dart"), | 178 [os.path.join("third_party", "dart-sdk", "dart-sdk", "bin", "dart"), |
| 179 "--checked", | 179 "--checked", |
| 180 "-p", os.path.join("mojo", "dart", "mojom", "packages"), | 180 "-p", os.path.join("mojo", "dart", "mojom", "packages"), |
| 181 os.path.join("mojo", "dart", "mojom", "test", "generate_test.dart")]) | 181 os.path.join("mojo", "dart", "mojom", "test", "generate_test.dart")]) |
| 182 | 182 |
| 183 if target_os == Config.OS_LINUX: |
| 184 AddEntry("Dart snapshotter test", |
| 185 ["python", |
| 186 os.path.join("mojo", "dart", "dart_snapshotter", "test", |
| 187 "dart_snapshotter_test.py"), |
| 188 "--build-dir=" + build_dir]) |
| 189 |
| 183 # Perf tests ----------------------------------------------------------------- | 190 # Perf tests ----------------------------------------------------------------- |
| 184 | 191 |
| 185 if target_os == Config.OS_LINUX and ShouldRunTest(Config.TEST_TYPE_PERF): | 192 if target_os == Config.OS_LINUX and ShouldRunTest(Config.TEST_TYPE_PERF): |
| 186 perf_id = "linux_%s" % ("debug" if config.is_debug else "release") | 193 perf_id = "linux_%s" % ("debug" if config.is_debug else "release") |
| 187 test_names = ["mojo_public_system_perftests", | 194 test_names = ["mojo_public_system_perftests", |
| 188 "mojo_public_bindings_perftests"] | 195 "mojo_public_bindings_perftests"] |
| 189 | 196 |
| 190 for test_name in test_names: | 197 for test_name in test_names: |
| 191 command = ["python", | 198 command = ["python", |
| 192 os.path.join("mojo", "tools", "perf_test_runner.py"), | 199 os.path.join("mojo", "tools", "perf_test_runner.py"), |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 config = Config(**json.load(args.config_file)) | 241 config = Config(**json.load(args.config_file)) |
| 235 test_list = GetTestList(config) | 242 test_list = GetTestList(config) |
| 236 json.dump(test_list, args.test_list_file, indent=2) | 243 json.dump(test_list, args.test_list_file, indent=2) |
| 237 args.test_list_file.write("\n") | 244 args.test_list_file.write("\n") |
| 238 | 245 |
| 239 return 0 | 246 return 0 |
| 240 | 247 |
| 241 | 248 |
| 242 if __name__ == "__main__": | 249 if __name__ == "__main__": |
| 243 sys.exit(main()) | 250 sys.exit(main()) |
| OLD | NEW |