summaryrefslogtreecommitdiff
path: root/doc/develop
diff options
context:
space:
mode:
authorSimon Glass <[email protected]>2026-03-06 11:12:42 -0700
committerSimon Glass <[email protected]>2026-03-18 06:14:16 -0600
commit9c17d547c46866a168b2df38a2aa24d0f28e971e (patch)
treeed3a8a88ec5e757bb075dd232b1c822f329f21ab /doc/develop
parent90a2b8c53d152dc5593f6dfdd8925ebd1ccfb830 (diff)
binman: test: Move vendor-specific test files to test/vendor/
Move about 20 test files for vendor-specific platform support (TI, NXP i.MX, Renesas R-Car, Rockchip, PowerPC MPC85xx) into a vendor/ subdirectory. Drop the numeric prefixes and update all references. Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'doc/develop')
-rw-r--r--doc/develop/binman_tests.rst12
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/develop/binman_tests.rst b/doc/develop/binman_tests.rst
index c7fa9ae6199..3be7d43cd3f 100644
--- a/doc/develop/binman_tests.rst
+++ b/doc/develop/binman_tests.rst
@@ -457,7 +457,7 @@ can, which contains the new etype. Put it in a numbered file in
``tool/binman/test`` so that it comes last. All the numbers are unique and there
are no gaps.
-Example from ``tools/binman/test/339_nxp_imx8.dts``:
+Example from ``tools/binman/test/vendor/nxp_imx8.dts``:
.. code-block:: devicetree
@@ -493,7 +493,7 @@ Then create your test by adding a new function at the end of ``ftest.py``:
def testNxpImx8Image(self):
"""Test that binman can produce an iMX8 image"""
- self._DoTestFile('339_nxp_imx8.dts')
+ self._DoTestFile('vendor/nxp_imx8.dts')
This uses the test file that you created. It doesn't check anything, it just
runs the image description through binman.
@@ -517,7 +517,7 @@ The next step is to update it to actually check the output:
def testNxpImx8Image(self):
"""Test that binman can produce an iMX8 image"""
- data = self._DoReadFile('339_nxp_imx8.dts')
+ data = self._DoReadFile('vendor/nxp_imx8.dts')
print('data', len(data))
The ``_DoReadFile()`` function is documented in the code. It returns the image
@@ -573,7 +573,7 @@ In the above example, here are some possible steps:
def testNxpImx8ImageMkimageMissing(self):
"""Test that binman can produce an iMX8 image"""
with terminal.capture() as (_, stderr):
- self._DoTestFile('339_nxp_imx8.dts',
+ self._DoTestFile('vendor/nxp_imx8.dts',
force_missing_bintools='mkimage')
err = stderr.getvalue()
self.assertRegex(err, "Image 'image'.*missing bintools.*: mkimage")
@@ -610,7 +610,7 @@ In the above example, here are some possible steps:
Entry_section.SetImagePos(self, image_pos)
- The solution is to add an entry, e.g. in ``340_nxp_imx8_non_empty.dts``:
+ The solution is to add an entry, e.g. in ``vendor/nxp_imx8_non_empty.dts``:
.. code-block:: devicetree
@@ -641,7 +641,7 @@ In the above example, here are some possible steps:
def testNxpImx8ImageNonEmpty(self):
"""Test that binman can produce an iMX8 image with something in it"""
- data = self._DoReadFile('340_nxp_imx8_non_empty.dts')
+ data = self._DoReadFile('vendor/nxp_imx8_non_empty.dts')
# check data here
With that, the second red bit goes away, because the for() loop is now used.