From 4281ad8e7fcb304724127281f258d198001fd41a Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Mon, 23 Sep 2013 17:35:17 -0600 Subject: 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 --- tools/buildman/buildman.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'tools/buildman/buildman.py') 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) -- cgit v1.2.3-70-g09d2