mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
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: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
934cdcfb1b
commit
9fc60b4975
2 changed files with 8 additions and 0 deletions
|
@ -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):
|
||||||
"""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()
|
||||||
|
|
Loading…
Reference in a new issue