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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 AddEntry("Mojo tools unit tests", | 150 AddEntry("Mojo tools unit tests", |
151 ["python", os.path.join("mojo", "tools", "testing", | 151 ["python", os.path.join("mojo", "tools", "testing", |
152 "mojom_fetcher", | 152 "mojom_fetcher", |
153 "mojom_fetcher_tests.py")]) | 153 "mojom_fetcher_tests.py")]) |
154 | 154 |
155 # Dart mojom package generate.dart script tests: | 155 # Dart mojom package generate.dart script tests: |
156 if target_os == Config.OS_LINUX: | 156 if target_os == Config.OS_LINUX: |
157 AddEntry("Dart mojom package generate tests", | 157 AddEntry("Dart mojom package generate tests", |
158 [os.path.join("third_party", "dart-sdk", "dart-sdk", "bin", "dart"), | 158 [os.path.join("third_party", "dart-sdk", "dart-sdk", "bin", "dart"), |
159 "--checked", | 159 "--checked", |
160 "-p", os.path.join("mojo", "public", "dart", "mojom", "packages"), | 160 "-p", os.path.join(build_dir, "gen", "dart-pkg", "packages"), |
161 os.path.join( | 161 os.path.join( |
162 "mojo", "public", "dart", "mojom", "test", "generate_test.dart")]) | 162 "mojo", "public", "dart", "mojom", "test", "generate_test.dart")]) |
163 | 163 |
164 if target_os == Config.OS_LINUX: | 164 if target_os == Config.OS_LINUX: |
165 AddEntry("Dart snapshotter test", | 165 AddEntry("Dart snapshotter test", |
166 ["python", | 166 ["python", |
167 os.path.join("mojo", "dart", "dart_snapshotter", "test", | 167 os.path.join("mojo", "dart", "dart_snapshotter", "test", |
168 "dart_snapshotter_test.py"), | 168 "dart_snapshotter_test.py"), |
169 "--build-dir=" + build_dir]) | 169 "--build-dir=" + build_dir]) |
170 | 170 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 config = Config(**json.load(args.config_file)) | 222 config = Config(**json.load(args.config_file)) |
223 test_list = GetTestList(config) | 223 test_list = GetTestList(config) |
224 json.dump(test_list, args.test_list_file, indent=2) | 224 json.dump(test_list, args.test_list_file, indent=2) |
225 args.test_list_file.write("\n") | 225 args.test_list_file.write("\n") |
226 | 226 |
227 return 0 | 227 return 0 |
228 | 228 |
229 | 229 |
230 if __name__ == "__main__": | 230 if __name__ == "__main__": |
231 sys.exit(main()) | 231 sys.exit(main()) |
OLD | NEW |