3 # Copyright (c) 2012 The Chromium OS Authors.
5 # SPDX-License-Identifier: GPL-2.0+
8 """See README for more information"""
10 import multiprocessing
16 # Bring in the patman libraries
17 our_path = os.path.dirname(os.path.realpath(__file__))
18 sys.path.append(os.path.join(our_path, '../patman'))
36 result = unittest.TestResult()
37 for module in ['toolchain']:
38 suite = doctest.DocTestSuite(module)
41 # TODO: Surely we can just 'print' result?
43 for test, err in result.errors:
45 for test, err in result.failures:
48 sys.argv = [sys.argv[0]]
49 suite = unittest.TestLoader().loadTestsFromTestCase(test.TestBuild)
50 result = unittest.TestResult()
53 # TODO: Surely we can just 'print' result?
55 for test, err in result.errors:
57 for test, err in result.failures:
61 options, args = cmdline.ParseArgs()
63 # Run our meagre tests
67 # Build selected commits for selected boards
69 ret_code = control.DoBuildman(options, args)