From: Simon Glass Date: Sun, 12 Nov 2017 21:52:22 -0700 Subject: [U-Boot] [PATCH 18/26] binman: Add a main program to the tests In-Reply-To: <20171113045231.15911-1-sjg@chromium.org> References: <20171113045231.15911-1-sjg@chromium.org> Message-ID: <20171113045231.15911-19-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Add a main program so that the tests can be executed directly, without going through the main binman program. Signed-off-by: Simon Glass --- tools/binman/entry_test.py | 4 ++++ tools/binman/ftest.py | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/tools/binman/entry_test.py b/tools/binman/entry_test.py index 789b26fd9f5..caa523ebf89 100644 --- a/tools/binman/entry_test.py +++ b/tools/binman/entry_test.py @@ -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() diff --git a/tools/binman/ftest.py b/tools/binman/ftest.py index eae1ab1c4b1..539ebc57f57 100644 --- a/tools/binman/ftest.py +++ b/tools/binman/ftest.py @@ -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() -- 2.15.0.448.gf294e3d99a-goog