| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2015 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2015 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 """Runs all unit tests in catapult.""" | 6 """Runs all unit tests in catapult.""" |
| 7 | 7 |
| 8 import os | 8 import os |
| 9 import sys | 9 import sys |
| 10 | 10 |
| 11 | 11 |
| 12 _CATAPULT_PATH = os.path.abspath( | 12 _CATAPULT_PATH = os.path.abspath( |
| 13 os.path.join(os.path.dirname(__file__), os.path.pardir)) | 13 os.path.join(os.path.dirname(__file__), os.path.pardir)) |
| 14 _TESTS = [ | 14 _TESTS = [ |
| 15 {'path': os.path.join(_CATAPULT_PATH, 'tracing', 'bin', 'run_tests')}, | 15 {'path': os.path.join(_CATAPULT_PATH, 'tracing', 'bin', 'run_tests')}, |
| 16 {'path': os.path.join( | 16 {'path': os.path.join( |
| 17 _CATAPULT_PATH, 'tracing', 'third_party', 'tvcm', 'run_py_tests')}, | 17 _CATAPULT_PATH, 'third_party', 'py_vulcanize', 'run_py_tests')}, |
| 18 {'path': os.path.join(_CATAPULT_PATH, 'perf_insights', 'bin', 'run_tests')}, | 18 {'path': os.path.join(_CATAPULT_PATH, 'perf_insights', 'bin', 'run_tests')}, |
| 19 {'path': os.path.join( | 19 {'path': os.path.join( |
| 20 _CATAPULT_PATH, 'catapult_build', 'bin', 'run_py_tests')}, | 20 _CATAPULT_PATH, 'catapult_build', 'bin', 'run_py_tests')}, |
| 21 {'path': os.path.join(_CATAPULT_PATH, 'base', 'util', 'run_tests.py')}, | 21 {'path': os.path.join(_CATAPULT_PATH, 'base', 'util', 'run_tests.py')}, |
| 22 {'path': os.path.join(_CATAPULT_PATH, 'third_party', 'vinn', 'run_test')}, | 22 {'path': os.path.join(_CATAPULT_PATH, 'third_party', 'vinn', 'run_test')}, |
| 23 # TODO(anniesullie): Add dashboard tests when SDK issues are sorted out. | 23 # TODO(anniesullie): Add dashboard tests when SDK issues are sorted out. |
| 24 ] | 24 ] |
| 25 | 25 |
| 26 | 26 |
| 27 if __name__ == '__main__': | 27 if __name__ == '__main__': |
| 28 sys.path.append(_CATAPULT_PATH) | 28 sys.path.append(_CATAPULT_PATH) |
| 29 from catapult_build import test_runner | 29 from catapult_build import test_runner |
| 30 sys.exit(test_runner.Main('project', _TESTS, sys.argv)) | 30 sys.exit(test_runner.Main('project', _TESTS, sys.argv)) |
| OLD | NEW |