| # SPDX-License-Identifier: GPL-2.0+ |
| # Copyright (c) 2012 The Chromium OS Authors. |
| """See README for more information""" |
| # Bring in the patman libraries |
| our_path = os.path.dirname(os.path.realpath(__file__)) |
| sys.path.insert(1, os.path.join(our_path, '../patman')) |
| def RunTests(skip_net_tests): |
| result = unittest.TestResult() |
| for module in ['toolchain', 'gitutil']: |
| suite = doctest.DocTestSuite(module) |
| for module in (test.TestBuild, func_test.TestFunctional): |
| suite = unittest.TestLoader().loadTestsFromTestCase(module) |
| for test, err in result.errors: |
| for test, err in result.failures: |
| options, args = cmdline.ParseArgs() |
| RunTests(options.skip_net_tests) |
| # Build selected commits for selected boards |
| bsettings.Setup(options.config_file) |
| ret_code = control.DoBuildman(options, args) |