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

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

Issue 1273743005: Dart: Adds a program to create snapshots of Mojo apps. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Fix asan build Created 5 years, 4 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
« no previous file with comments | « mojo/dart/embedder/BUILD.gn ('k') | no next file » | 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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())
OLDNEW
« no previous file with comments | « mojo/dart/embedder/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698