Chromium Code Reviews| 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 serialization tests: | |
|
azani
2015/11/05 21:20:46
Maybe fold this under mojom_parser tests. It is a
rudominer
2015/11/05 21:47:31
Done.
| |
| 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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 283 config = Config(**json.load(args.config_file)) | 288 config = Config(**json.load(args.config_file)) |
| 284 test_list = GetTestList(config) | 289 test_list = GetTestList(config) |
| 285 json.dump(test_list, args.test_list_file, indent=2) | 290 json.dump(test_list, args.test_list_file, indent=2) |
| 286 args.test_list_file.write("\n") | 291 args.test_list_file.write("\n") |
| 287 | 292 |
| 288 return 0 | 293 return 0 |
| 289 | 294 |
| 290 | 295 |
| 291 if __name__ == "__main__": | 296 if __name__ == "__main__": |
| 292 sys.exit(main()) | 297 sys.exit(main()) |
| OLD | NEW |