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

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

Issue 1421193003: New Mojom Parser: Serialization. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Refactors TestSingleFileSerialization. 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/go/rules.gni ('k') | mojom/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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 build_dir] + verbose_flags) 117 build_dir] + verbose_flags)
118 118
119 # Go unit tests (Linux-only): 119 # Go unit tests (Linux-only):
120 if (target_os == Config.OS_LINUX and 120 if (target_os == Config.OS_LINUX and
121 config.sanitizer != Config.SANITIZER_ASAN and 121 config.sanitizer != Config.SANITIZER_ASAN and
122 ShouldRunTest(Config.TEST_TYPE_DEFAULT, Config.TEST_TYPE_UNIT, "go")): 122 ShouldRunTest(Config.TEST_TYPE_DEFAULT, Config.TEST_TYPE_UNIT, "go")):
123 # Go system tests: 123 # Go system tests:
124 AddEntry("Go system tests", 124 AddEntry("Go system tests",
125 [os.path.join(build_dir, "obj", "mojo", "go", "system_test")]) 125 [os.path.join(build_dir, "obj", "mojo", "go", "system_test")])
126 126
127 # Go mojom parser tests:
128 AddEntry("Go mojom parser serialization tests",
129 [os.path.join(build_dir, "obj", "mojom", "mojom_parser",
130 "serialization_test")])
131
127 # Pure Go unit tests: 132 # Pure Go unit tests:
128 assert paths.go_tool_path is not None 133 assert paths.go_tool_path is not None
129 go_tool = paths.go_tool_path 134 go_tool = paths.go_tool_path
130 AddEntry("Go unit tests", 135 AddEntry("Go unit tests",
131 ["python", os.path.join("mojo", "tools", "run_pure_go_tests.py"), 136 ["python", os.path.join("mojo", "tools", "run_pure_go_tests.py"),
132 go_tool, os.path.join("mojo", "tools", "data", "gotests")]) 137 go_tool, os.path.join("mojo", "tools", "data", "gotests")])
133 138
134 # Python unit tests: 139 # Python unit tests:
135 if ShouldRunTest(Config.TEST_TYPE_DEFAULT, Config.TEST_TYPE_UNIT, "python"): 140 if ShouldRunTest(Config.TEST_TYPE_DEFAULT, Config.TEST_TYPE_UNIT, "python"):
136 AddEntry("Python unit tests", 141 AddEntry("Python unit tests",
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 config = Config(**json.load(args.config_file)) 291 config = Config(**json.load(args.config_file))
287 test_list = GetTestList(config) 292 test_list = GetTestList(config)
288 json.dump(test_list, args.test_list_file, indent=2) 293 json.dump(test_list, args.test_list_file, indent=2)
289 args.test_list_file.write("\n") 294 args.test_list_file.write("\n")
290 295
291 return 0 296 return 0
292 297
293 298
294 if __name__ == "__main__": 299 if __name__ == "__main__":
295 sys.exit(main()) 300 sys.exit(main())
OLDNEW
« no previous file with comments | « mojo/go/rules.gni ('k') | mojom/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698