Skip to content
Snippets Groups Projects
Commit 9fc60b49 authored by Simon Glass's avatar Simon Glass
Browse files

binman: Add a main program to the tests


Add a main program so that the tests can be executed directly, without
going through the main binman program.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent 934cdcfb
No related branches found
No related tags found
No related merge requests found
...@@ -55,3 +55,7 @@ class TestEntry(unittest.TestCase): ...@@ -55,3 +55,7 @@ class TestEntry(unittest.TestCase):
entry.Entry.Create(None, node, node.name) entry.Entry.Create(None, node, node.name)
self.assertIn("Unknown entry type 'invalid-name' in node " self.assertIn("Unknown entry type 'invalid-name' in node "
"'invalid-path'", str(e.exception)) "'invalid-path'", str(e.exception))
if __name__ == "__main__":
unittest.main()
...@@ -813,3 +813,7 @@ class TestFunctional(unittest.TestCase): ...@@ -813,3 +813,7 @@ class TestFunctional(unittest.TestCase):
"""Test that an image with a VBT binary can be created""" """Test that an image with a VBT binary can be created"""
data = self._DoReadFile('46_intel-vbt.dts') data = self._DoReadFile('46_intel-vbt.dts')
self.assertEqual(VBT_DATA, data[:len(VBT_DATA)]) self.assertEqual(VBT_DATA, data[:len(VBT_DATA)])
if __name__ == "__main__":
unittest.main()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment