diff options
| author | Simon Glass <sjg@chromium.org> | 2013-09-23 17:35:17 -0600 | 
|---|---|---|
| committer | Simon Glass <sjg@chromium.org> | 2013-10-01 14:39:14 -0600 | 
| commit | 4281ad8e7fcb304724127281f258d198001fd41a (patch) | |
| tree | 5e777c526881590623f2edd7c31eb7ddbf101159 /tools/buildman/buildman.py | |
| parent | e19d5781ec5ea6de190f774835f361f8a43758d1 (diff) | |
| download | olio-uboot-2014.01-4281ad8e7fcb304724127281f258d198001fd41a.tar.xz olio-uboot-2014.01-4281ad8e7fcb304724127281f258d198001fd41a.zip | |
buildman: Allow make flags to be specified for each board
There are a few make options such as BUILD_TAG which can be provided when
building U-Boot. Provide a way for buildman to pass these flags to make
also.
The flags should be in a [make-flags] section and arranged by target name
(the 'target' column in boards.cfg. See the README for more details.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/buildman/buildman.py')
| -rwxr-xr-x | tools/buildman/buildman.py | 13 | 
1 files changed, 13 insertions, 0 deletions
| diff --git a/tools/buildman/buildman.py b/tools/buildman/buildman.py index 6fba2f292..43895b87e 100755 --- a/tools/buildman/buildman.py +++ b/tools/buildman/buildman.py @@ -32,6 +32,19 @@ import toolchain  def RunTests():      import test +    import doctest + +    result = unittest.TestResult() +    for module in ['toolchain']: +        suite = doctest.DocTestSuite(module) +        suite.run(result) + +    # TODO: Surely we can just 'print' result? +    print result +    for test, err in result.errors: +        print err +    for test, err in result.failures: +        print err      sys.argv = [sys.argv[0]]      suite = unittest.TestLoader().loadTestsFromTestCase(test.TestBuild) |