1*1fa4b3daSHector Dearman#!/usr/bin/env python 2*1fa4b3daSHector Dearman# Copyright (c) 2015 The Chromium Authors. All rights reserved. 3*1fa4b3daSHector Dearman# Use of this source code is governed by a BSD-style license that can be 4*1fa4b3daSHector Dearman# found in the LICENSE file. 5*1fa4b3daSHector Dearman 6*1fa4b3daSHector Dearmanimport os 7*1fa4b3daSHector Dearmanimport sys 8*1fa4b3daSHector Dearman 9*1fa4b3daSHector Dearman 10*1fa4b3daSHector Dearman_CATAPULT_PATH = os.path.abspath( 11*1fa4b3daSHector Dearman os.path.join(os.path.dirname(__file__), '..', '..')) 12*1fa4b3daSHector Dearman_TESTS = [ 13*1fa4b3daSHector Dearman {'path': os.path.join( 14*1fa4b3daSHector Dearman _CATAPULT_PATH, 'common', 'eslint', 'bin', 'run_tests')}, 15*1fa4b3daSHector Dearman {'path': os.path.join( 16*1fa4b3daSHector Dearman _CATAPULT_PATH, 'common', 'py_trace_event', 'bin', 'run_tests')}, 17*1fa4b3daSHector Dearman {'path': os.path.join( 18*1fa4b3daSHector Dearman _CATAPULT_PATH, 'common', 'py_utils', 'bin', 'run_tests')}, 19*1fa4b3daSHector Dearman {'path': os.path.join( 20*1fa4b3daSHector Dearman _CATAPULT_PATH, 'common', 'py_vulcanize', 'bin', 'run_py_tests')}, 21*1fa4b3daSHector Dearman] 22*1fa4b3daSHector Dearman 23*1fa4b3daSHector Dearman 24*1fa4b3daSHector Dearmanif __name__ == '__main__': 25*1fa4b3daSHector Dearman sys.path.append(_CATAPULT_PATH) 26*1fa4b3daSHector Dearman from catapult_build import test_runner 27*1fa4b3daSHector Dearman sys.exit(test_runner.Main('project', _TESTS, sys.argv)) 28*1fa4b3daSHector Dearman 29