Home | History | Annotate | Download | only in bin
      1 #!/usr/bin/env python
      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
      4 # found in the LICENSE file.
      5 
      6 """Runs all unit tests in catapult."""
      7 
      8 import os
      9 import sys
     10 
     11 
     12 _CATAPULT_PATH = os.path.abspath(
     13     os.path.join(os.path.dirname(__file__), os.path.pardir))
     14 _TESTS = [
     15     {'path': os.path.join(_CATAPULT_PATH, 'tracing', 'bin', 'run_tests')},
     16     {'path': os.path.join(
     17         _CATAPULT_PATH, 'third_party', 'py_vulcanize', 'bin', 'run_py_tests')},
     18     {'path': os.path.join(_CATAPULT_PATH, 'perf_insights', 'bin', 'run_tests')},
     19     {'path': os.path.join(
     20         _CATAPULT_PATH, 'catapult_build', 'bin', 'run_py_tests')},
     21     {'path': os.path.join(_CATAPULT_PATH, 'common', 'bin', 'run_tests')},
     22     {'path': os.path.join(_CATAPULT_PATH, 'dependency_manager', 'bin', 'run_tests')},
     23     {'path': os.path.join(_CATAPULT_PATH, 'telemetry', 'bin', 'run_tests')},
     24     {'path': os.path.join(_CATAPULT_PATH, 'third_party', 'vinn', 'run_test')},
     25     # TODO(anniesullie): Add dashboard tests when SDK issues are sorted out.
     26 ]
     27 
     28 
     29 if __name__ == '__main__':
     30   sys.path.append(_CATAPULT_PATH)
     31   from catapult_build import test_runner
     32   sys.exit(test_runner.Main('project', _TESTS, sys.argv))
     33