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

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

Issue 816113004: Dart: Adds a content handler and a test. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Address comments Created 5 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
« no previous file with comments | « mojo/tools/data/dart_apptests ('k') | services/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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 ) 146 )
147 147
148 # Other (non-default) tests -------------------------------------------------- 148 # Other (non-default) tests --------------------------------------------------
149 149
150 # Dart unit tests: 150 # Dart unit tests:
151 if ShouldRunTest("dart"): 151 if ShouldRunTest("dart"):
152 AddXvfbEntry("Dart unit tests", 152 AddXvfbEntry("Dart unit tests",
153 [os.path.join("mojo", "tools", "test_runner.py"), 153 [os.path.join("mojo", "tools", "test_runner.py"),
154 os.path.join("mojo", "tools", "data", "dart_unittests"), 154 os.path.join("mojo", "tools", "data", "dart_unittests"),
155 build_dir, "mojob_test_successes"]) 155 build_dir, "mojob_test_successes"])
156 AddXvfbEntry("Dart App tests",
157 [os.path.join("mojo", "tools", "apptest_runner.py"),
158 os.path.join("mojo", "tools", "data", "dart_apptests"),
159 build_dir])
156 160
157 # NaCl tests: 161 # NaCl tests:
158 if ShouldRunTest("nacl"): 162 if ShouldRunTest("nacl"):
159 AddEntry("NaCl tests", 163 AddEntry("NaCl tests",
160 [os.path.join(build_dir, "monacl_shell"), 164 [os.path.join(build_dir, "monacl_shell"),
161 os.path.join(build_dir, "irt_" + config.target_arch, 165 os.path.join(build_dir, "irt_" + config.target_arch,
162 "irt_core.nexe"), 166 "irt_core.nexe"),
163 os.path.join(build_dir, "clang_newlib_" + config.target_arch, 167 os.path.join(build_dir, "clang_newlib_" + config.target_arch,
164 "monacl_test.nexe")]) 168 "monacl_test.nexe")])
165 169
(...skipping 15 matching lines...) Expand all
181 config = Config(**json.load(args.config_file)) 185 config = Config(**json.load(args.config_file))
182 test_list = GetTestList(config) 186 test_list = GetTestList(config)
183 json.dump(test_list, args.test_list_file, indent=2) 187 json.dump(test_list, args.test_list_file, indent=2)
184 args.test_list_file.write("\n") 188 args.test_list_file.write("\n")
185 189
186 return 0 190 return 0
187 191
188 192
189 if __name__ == "__main__": 193 if __name__ == "__main__":
190 sys.exit(main()) 194 sys.exit(main())
OLDNEW
« no previous file with comments | « mojo/tools/data/dart_apptests ('k') | services/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698