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'))
37 result = unittest.TestResult()
38 for module in ['toolchain', 'gitutil']:
39 suite = doctest.DocTestSuite(module)
42 sys.argv = [sys.argv[0]]
43 for module in (test.TestBuild, func_test.TestFunctional):
44 suite = unittest.TestLoader().loadTestsFromTestCase(module)
48 for test, err in result.errors:
50 for test, err in result.failures:
54 options, args = cmdline.ParseArgs()
56 # Run our meagre tests
60 # Build selected commits for selected boards
62 ret_code = control.DoBuildman(options, args)