]> git.sur5r.net Git - u-boot/commitdiff
binman: Add a main program to the tests
authorSimon Glass <sjg@chromium.org>
Mon, 13 Nov 2017 04:52:22 +0000 (21:52 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 23 Nov 2017 01:05:38 +0000 (18:05 -0700)
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>
tools/binman/entry_test.py
tools/binman/ftest.py

index 789b26fd9f55c37e6f33489a2eb306adafae957b..caa523ebf899fa06312d12dbdcbf96270004fc6f 100644 (file)
@@ -55,3 +55,7 @@ class TestEntry(unittest.TestCase):
             entry.Entry.Create(None, node, node.name)
         self.assertIn("Unknown entry type 'invalid-name' in node "
                       "'invalid-path'", str(e.exception))
+
+
+if __name__ == "__main__":
+    unittest.main()
index eae1ab1c4b1edc6ba034c2c8a908ebb9cf037aee..539ebc57f57c9cd6867e941dedcd1d8df822fcd3 100644 (file)
@@ -813,3 +813,7 @@ class TestFunctional(unittest.TestCase):
         """Test that an image with a VBT binary can be created"""
         data = self._DoReadFile('46_intel-vbt.dts')
         self.assertEqual(VBT_DATA, data[:len(VBT_DATA)])
+
+
+if __name__ == "__main__":
+    unittest.main()