summaryrefslogtreecommitdiff
path: root/tools/buildman/buildman.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2013-09-23 23:35:17 (GMT)
committerSimon Glass <sjg@chromium.org>2013-10-01 20:39:14 (GMT)
commit4281ad8e7fcb304724127281f258d198001fd41a (patch)
tree5e777c526881590623f2edd7c31eb7ddbf101159 /tools/buildman/buildman.py
parente19d5781ec5ea6de190f774835f361f8a43758d1 (diff)
downloadu-boot-fsl-qoriq-4281ad8e7fcb304724127281f258d198001fd41a.tar.xz
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-xtools/buildman/buildman.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/buildman/buildman.py b/tools/buildman/buildman.py
index 6fba2f2..43895b8 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)