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
4 # found in the LICENSE file.
12 if __name__ == '__main__':
13 cur_dir = os.path.abspath(os.path.dirname(__file__))
14 chromium_dir = os.path.abspath(os.path.join(cur_dir, os.pardir, os.pardir))
19 # Include all dependencies.
20 os.path.join(chromium_dir, 'build', 'android'), # For pylib.
24 level=logging.DEBUG if '-v' in sys.argv else logging.WARNING,
25 format='%(levelname)5s %(filename)15s(%(lineno)3d): %(message)s')
27 suite = unittest.TestSuite()
28 loader = unittest.TestLoader()
29 suite.addTests(loader.discover(start_dir=cur_dir, pattern='*_unittest.py'))
31 res = unittest.TextTestRunner(verbosity=2).run(suite)
32 if res.wasSuccessful():