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 import os | 6 import os |
7 import sys | 7 import sys |
8 | 8 |
9 from mopy.mojo_python_tests_runner import MojoPythonTestRunner | 9 from mopy.mojo_python_tests_runner import MojoPythonTestRunner |
10 | 10 |
11 | 11 |
12 def main(): | 12 def main(): |
13 test_dir_list = [ | 13 test_dir_list = [ |
14 # Tests of pylib bindings. | 14 # Tests of pylib bindings. |
15 os.path.join('mojo', 'public', 'tools', 'bindings', 'pylib'), | 15 os.path.join('mojo', 'public', 'tools', 'bindings', 'pylib'), |
16 # Tests of "mopy" python tools code. | 16 # Tests of "mopy" python tools code. |
17 os.path.join('mojo', 'tools', 'mopy'), | 17 os.path.join('mojo', 'tools', 'mopy'), |
18 # Tests of python code in devtools. | 18 # Tests of python code in devtools. |
19 os.path.join('mojo', 'devtools', 'common', 'devtoolslib') | 19 os.path.join('mojo', 'devtools', 'common', 'devtoolslib'), |
| 20 os.path.join('mojo', 'devtools', 'common', 'android_stack_parser') |
20 ] | 21 ] |
21 | 22 |
22 for test_dir in test_dir_list: | 23 for test_dir in test_dir_list: |
23 runner = MojoPythonTestRunner(test_dir) | 24 runner = MojoPythonTestRunner(test_dir) |
24 exit_code = runner.run() | 25 exit_code = runner.run() |
25 if exit_code: | 26 if exit_code: |
26 return exit_code | 27 return exit_code |
27 | 28 |
28 | 29 |
29 if __name__ == '__main__': | 30 if __name__ == '__main__': |
30 sys.exit(main()) | 31 sys.exit(main()) |
OLD | NEW |