summaryrefslogtreecommitdiff
path: root/tools/binman/binman.py
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2017-12-14 15:46:07 -0500
committerTom Rini <trini@konsulko.com>2017-12-14 15:46:07 -0500
commit15616a0aa58173bce1efe47569bf2e10d023ae9c (patch)
tree57a9d4613a8534360816344cd0a331fd15649e80 /tools/binman/binman.py
parent7ef548e6008d4225e0ae7c9af35cb76558756a62 (diff)
parent854dfbf99b89c114ba100905e1500b8ace60e0f9 (diff)
Merge git://git.denx.de/u-boot-dm
Diffstat (limited to 'tools/binman/binman.py')
-rwxr-xr-xtools/binman/binman.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/tools/binman/binman.py b/tools/binman/binman.py
index 3ccf25f1f88..1c8e8dbff65 100755
--- a/tools/binman/binman.py
+++ b/tools/binman/binman.py
@@ -31,11 +31,13 @@ import cmdline
import command
import control
-def RunTests():
+def RunTests(debug):
"""Run the functional tests and any embedded doctests"""
+ import elf_test
import entry_test
import fdt_test
import ftest
+ import image_test
import test
import doctest
@@ -45,12 +47,15 @@ def RunTests():
suite.run(result)
sys.argv = [sys.argv[0]]
+ if debug:
+ sys.argv.append('-D')
# Run the entry tests first ,since these need to be the first to import the
# 'entry' module.
suite = unittest.TestLoader().loadTestsFromTestCase(entry_test.TestEntry)
suite.run(result)
- for module in (ftest.TestFunctional, fdt_test.TestFdt):
+ for module in (ftest.TestFunctional, fdt_test.TestFdt, elf_test.TestElf,
+ image_test.TestImage):
suite = unittest.TestLoader().loadTestsFromTestCase(module)
suite.run(result)
@@ -110,7 +115,7 @@ def RunBinman(options, args):
sys.tracebacklimit = 0
if options.test:
- ret_code = RunTests()
+ ret_code = RunTests(options.debug)
elif options.test_coverage:
RunTestCoverage()