summaryrefslogtreecommitdiff
path: root/tools/binman/ftest.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-07-18 07:24:06 -0600
committerSimon Glass <sjg@chromium.org>2023-07-20 14:10:58 -0600
commitdb0e3f13b481cabd8f203a4ac742bb1afde6c67e (patch)
treef1160d657ce74dffa8b0de8f24a43902e44fa70d /tools/binman/ftest.py
parent35f72fb55a05ccf2a372566005f60c340924d1cc (diff)
binman: Add a test for templating in a FIT
Add this as a separate test case. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/ftest.py')
-rw-r--r--tools/binman/ftest.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/binman/ftest.py b/tools/binman/ftest.py
index dd6075b871d..dfca6316624 100644
--- a/tools/binman/ftest.py
+++ b/tools/binman/ftest.py
@@ -6805,6 +6805,13 @@ fdt fdtmap Extract the devicetree blob from the fdtmap
data = tools.read_file(image_fname)
self.assertEqual(b'blob@@@@other', data)
+ def testTemplateFit(self):
+ """Test using a template in a FIT"""
+ fit_data = self._DoReadFile('288_template_fit.dts')
+ fname = os.path.join(self._indir, 'fit_data.fit')
+ tools.write_file(fname, fit_data)
+ out = tools.run('dumpimage', '-l', fname)
+
if __name__ == "__main__":
unittest.main()