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

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

Issue 1571823002: Dart: Adds tests of a couple Dart examples. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 11 months 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
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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
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:
181 if target_os == Config.OS_LINUX and ShouldRunTest(Config.TEST_TYPE_DEFAULT): 180 if target_os == Config.OS_LINUX and ShouldRunTest(Config.TEST_TYPE_DEFAULT):
181 # Dart mojom package generate.dart script tests:
182 AddEntry("Dart mojom package generate tests", 182 AddEntry("Dart mojom package generate tests",
183 [os.path.join("third_party", "dart-sdk", "dart-sdk", "bin", "dart"), 183 [os.path.join("third_party", "dart-sdk", "dart-sdk", "bin", "dart"),
184 "--checked", 184 "--checked",
185 "-p", os.path.join(build_dir, "gen", "dart-pkg", "packages"), 185 "-p", os.path.join(build_dir, "gen", "dart-pkg", "packages"),
186 os.path.join( 186 os.path.join(
187 "mojo", "dart", "packages", "mojom", "test", "generate_test.dart")]) 187 "mojo", "dart", "packages", "mojom", "test", "generate_test.dart")])
188 188
189 if target_os == Config.OS_LINUX and ShouldRunTest(Config.TEST_TYPE_DEFAULT): 189 # Tests of Dart examples.
190 AddEntry("Dart examples tests",
Cutch 2016/01/11 21:10:58 Maybe add a "if ShouldRunTest(Config.TEST_TYPE_DEF
zra 2016/01/11 22:11:18 Done.
191 ["python", os.path.join("examples", "dart", "example_tests.py"),
192 "--build-dir", build_dir])
193
194 # Test of Dart's snapshotter.
190 AddEntry("Dart snapshotter test", 195 AddEntry("Dart snapshotter test",
191 ["python", 196 ["python",
192 os.path.join("mojo", "dart", "embedder", "snapshotter", "test", 197 os.path.join("mojo", "dart", "embedder", "snapshotter", "test",
193 "dart_snapshotter_test.py"), 198 "dart_snapshotter_test.py"),
194 "--build-dir=" + build_dir]) 199 "--build-dir=" + build_dir])
195 200
196 # Dart analyzer test 201 # Dart analyzer test
197 if ShouldRunTest(Config.TEST_TYPE_DEFAULT, "analyze-dart"): 202 if ShouldRunTest(Config.TEST_TYPE_DEFAULT, "analyze-dart"):
198 AddEntry("Dart Package Static Analysis", 203 AddEntry("Dart Package Static Analysis",
199 ["python", 204 ["python",
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 config = Config(**json.load(args.config_file)) 295 config = Config(**json.load(args.config_file))
291 test_list = GetTestList(config) 296 test_list = GetTestList(config)
292 json.dump(test_list, args.test_list_file, indent=2) 297 json.dump(test_list, args.test_list_file, indent=2)
293 args.test_list_file.write("\n") 298 args.test_list_file.write("\n")
294 299
295 return 0 300 return 0
296 301
297 302
298 if __name__ == "__main__": 303 if __name__ == "__main__":
299 sys.exit(main()) 304 sys.exit(main())
OLDNEW
« examples/dart/example_tests.py ('K') | « examples/dart/wget/test/wget_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698