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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 107 ShouldRunTest(Config.TEST_TYPE_DEFAULT, Config.TEST_TYPE_UNIT, | 107 ShouldRunTest(Config.TEST_TYPE_DEFAULT, Config.TEST_TYPE_UNIT, |
| 108 "python") and | 108 "python") and |
| 109 config.sanitizer != Config.SANITIZER_ASAN): | 109 config.sanitizer != Config.SANITIZER_ASAN): |
| 110 AddEntry("Python bindings tests", | 110 AddEntry("Python bindings tests", |
| 111 ["python", | 111 ["python", |
| 112 os.path.join("mojo", "tools", | 112 os.path.join("mojo", "tools", |
| 113 "run_mojo_python_bindings_tests.py"), | 113 "run_mojo_python_bindings_tests.py"), |
| 114 "--build-dir=" + build_dir]) | 114 "--build-dir=" + build_dir]) |
| 115 | 115 |
| 116 # NaCl tests (Linux only): | 116 # NaCl tests (Linux only): |
| 117 if target_os == Config.OS_LINUX and config.sanitizer != Config.SANITIZER_ASAN: | 117 if (target_os == Config.OS_LINUX and |
| 118 config.sanitizer != Config.SANITIZER_ASAN and | |
| 119 ShouldRunTest(Config.TEST_TYPE_DEFAULT, Config.TEST_TYPE_UNIT, "app") ): | |
|
viettrungluu
2015/05/14 22:49:38
nit: no space before second )
| |
| 118 AddEntry("NaCl tests", | 120 AddEntry("NaCl tests", |
| 119 [os.path.join(build_dir, "monacl_shell"), | 121 [os.path.join(build_dir, "monacl_shell"), |
| 120 os.path.join(build_dir, "irt_" + config.target_cpu, | 122 os.path.join(build_dir, "irt_" + config.target_cpu, |
| 121 "irt_mojo.nexe"), | 123 "irt_mojo.nexe"), |
| 122 os.path.join(build_dir, "clang_newlib_" + config.target_cpu, | 124 os.path.join(build_dir, "clang_newlib_" + config.target_cpu, |
| 123 "monacl_test.nexe")]) | 125 "monacl_test.nexe")]) |
| 124 | 126 |
| 125 AddXvfbEntry("NaCl app tests", | 127 AddXvfbEntry("NaCl app tests", |
|
jamesr
2015/05/14 22:44:07
maybe just this should be guarded by the "app" con
viettrungluu
2015/05/14 22:49:38
I agree.
(And probably "NaCl tests" shouldn't be
rudominer
2015/05/14 22:51:44
How about if I move the AddEntry("Nacl tests") up
| |
| 126 [os.path.join("mojo", "tools", "apptest_runner.py"), | 128 [os.path.join("mojo", "tools", "apptest_runner.py"), |
| 127 os.path.join("mojo", "tools", "data", "nacl_apptests"), | 129 os.path.join("mojo", "tools", "data", "nacl_apptests"), |
| 128 build_dir] + verbose_flags) | 130 build_dir] + verbose_flags) |
| 129 | 131 |
| 130 # Sky tests (Linux-only): | 132 # Sky tests (Linux-only): |
| 131 # TODO(abarth): Re-enabled in ASAN once the DartVM works in ASAN. | 133 # TODO(abarth): Re-enabled in ASAN once the DartVM works in ASAN. |
| 132 # See https://code.google.com/p/dart/issues/detail?id=22122 | 134 # See https://code.google.com/p/dart/issues/detail?id=22122 |
| 133 if (target_os == Config.OS_LINUX and | 135 if (target_os == Config.OS_LINUX and |
| 134 ShouldRunTest(Config.TEST_TYPE_DEFAULT, "sky") and | 136 ShouldRunTest(Config.TEST_TYPE_DEFAULT, "sky") and |
| 135 config.sanitizer != Config.SANITIZER_ASAN): | 137 config.sanitizer != Config.SANITIZER_ASAN): |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 207 config = Config(**json.load(args.config_file)) | 209 config = Config(**json.load(args.config_file)) |
| 208 test_list = GetTestList(config) | 210 test_list = GetTestList(config) |
| 209 json.dump(test_list, args.test_list_file, indent=2) | 211 json.dump(test_list, args.test_list_file, indent=2) |
| 210 args.test_list_file.write("\n") | 212 args.test_list_file.write("\n") |
| 211 | 213 |
| 212 return 0 | 214 return 0 |
| 213 | 215 |
| 214 | 216 |
| 215 if __name__ == "__main__": | 217 if __name__ == "__main__": |
| 216 sys.exit(main()) | 218 sys.exit(main()) |
| OLD | NEW |