OLD | NEW |
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 Loading... |
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 Loading... |
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()) |
OLD | NEW |