]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - tools/buildman/buildman.py
buildman: Allow make flags to be specified for each board
[karo-tx-uboot.git] / tools / buildman / buildman.py
index 6fba2f292a03b136bcef989e0f1767258d59302d..43895b87ea729d02b675a68b38e26784b21ef57c 100755 (executable)
@@ -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)