Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(684)

Side by Side Diff: mojo/tools/get_test_list.py

Issue 1441033002: Move mojo and mojom from mojo/public/dart to mojo/dart/packages (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « mojo/public/dart/sdk_ext_sources.gni ('k') | services/dart/dart_apptests/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 "--build-dir=" + build_dir, 180 "--build-dir=" + build_dir,
181 "--dart-exe=third_party/dart-sdk/dart-sdk/bin/dart"]) 181 "--dart-exe=third_party/dart-sdk/dart-sdk/bin/dart"])
182 182
183 # Dart mojom package generate.dart script tests: 183 # Dart mojom package generate.dart script tests:
184 if target_os == Config.OS_LINUX and ShouldRunTest(Config.TEST_TYPE_DEFAULT): 184 if target_os == Config.OS_LINUX and 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", "public", "dart", "mojom", "test", "generate_test.dart")]) 190 "mojo", "dart", "packages", "mojom", "test", "generate_test.dart")])
191 191
192 if target_os == Config.OS_LINUX and ShouldRunTest(Config.TEST_TYPE_DEFAULT): 192 if target_os == Config.OS_LINUX and ShouldRunTest(Config.TEST_TYPE_DEFAULT):
193 AddEntry("Dart snapshotter test", 193 AddEntry("Dart snapshotter test",
194 ["python", 194 ["python",
195 os.path.join("mojo", "dart", "dart_snapshotter", "test", 195 os.path.join("mojo", "dart", "dart_snapshotter", "test",
196 "dart_snapshotter_test.py"), 196 "dart_snapshotter_test.py"),
197 "--build-dir=" + build_dir]) 197 "--build-dir=" + build_dir])
198 198
199 # Dart analyzer test 199 # Dart analyzer test
200 if ShouldRunTest(Config.TEST_TYPE_DEFAULT, "analyze-dart"): 200 if ShouldRunTest(Config.TEST_TYPE_DEFAULT, "analyze-dart"):
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 config = Config(**json.load(args.config_file)) 293 config = Config(**json.load(args.config_file))
294 test_list = GetTestList(config) 294 test_list = GetTestList(config)
295 json.dump(test_list, args.test_list_file, indent=2) 295 json.dump(test_list, args.test_list_file, indent=2)
296 args.test_list_file.write("\n") 296 args.test_list_file.write("\n")
297 297
298 return 0 298 return 0
299 299
300 300
301 if __name__ == "__main__": 301 if __name__ == "__main__":
302 sys.exit(main()) 302 sys.exit(main())
OLDNEW
« no previous file with comments | « mojo/public/dart/sdk_ext_sources.gni ('k') | services/dart/dart_apptests/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698