<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot/u-boot.git/test, branch master</title>
<subtitle>Das U-Boot Source Tree</subtitle>
<id>https://git.rulkc.org/pub/scm/bootloaders/u-boot/u-boot.git/atom?h=master</id>
<link rel='self' href='https://git.rulkc.org/pub/scm/bootloaders/u-boot/u-boot.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/bootloaders/u-boot/u-boot.git/'/>
<updated>2026-07-06T14:28:51+00:00</updated>
<entry>
<title>test: Stop running the patman tests</title>
<updated>2026-07-06T14:28:51+00:00</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2026-07-05T19:32:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/bootloaders/u-boot/u-boot.git/commit/?id=c8db1555251aada7478f4fbad7e643bed02a8cbe'/>
<id>urn:sha1:c8db1555251aada7478f4fbad7e643bed02a8cbe</id>
<content type='text'>
The patman tests no longer exist in the tree, so drop them from the
test/run script (used by 'make tcheck' and friends) and from the
tools-testing example in the documentation.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>test: net: add IP defragmentation duplicate-fragment regression test</title>
<updated>2026-06-23T11:13:16+00:00</updated>
<author>
<name>Mateusz Furdyna</name>
<email>mateusz.furdyna@nokia.com</email>
</author>
<published>2026-06-10T14:25:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/bootloaders/u-boot/u-boot.git/commit/?id=8382c2ad5284fdfffb6848fb429c40fdf169bf3a'/>
<id>urn:sha1:8382c2ad5284fdfffb6848fb429c40fdf169bf3a</id>
<content type='text'>
Add a unit test for the IP datagram reassembler (CONFIG_IP_DEFRAG) that
covers the duplicate-last-fragment scenario.

Without the fix the last fragment will re-trigger datagram delivery,
increasing udp_rx_count to 2 and effectively failing the test; with it
applied the test passes with udp_rx_count == 1.

Signed-off-by: Mateusz Furdyna &lt;mateusz.furdyna@nokia.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>tests: fs_helper: check path validity during cleanup</title>
<updated>2026-06-02T23:29:22+00:00</updated>
<author>
<name>Francesco Valla</name>
<email>francesco@valla.it</email>
</author>
<published>2026-05-31T21:15:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/bootloaders/u-boot/u-boot.git/commit/?id=b353d523a86775663ca2eebcd4741f3f3a9b1fe4'/>
<id>urn:sha1:b353d523a86775663ca2eebcd4741f3f3a9b1fe4</id>
<content type='text'>
If the filesystem creation attempted by the FsHelper class fails, the
invocation of the cleanup function will cause a TypeError exception,
because the path of the filesystem itself, fed to os.remove(), will be
None. This will lead to a test failure even in case a skip is instead
wanted.

Such an exception will lead to a backtrace like this:

  test/py/tests/test_fs/conftest.py:269: in fs_obj_basic
      fsh.mk_fs()
  test/py/tests/fs_helper.py:70: in mk_fs
      self.fs_img = mk_fs(self.config, self.fs_type, self.size_mb &lt;&lt; 20,
  test/py/tests/fs_helper.py:246: in mk_fs
      check_call(f'mkfs.{fs_lnxtype} {mkfs_opt} {fs_img}', shell=True,
  /usr/lib64/python3.14/subprocess.py:420: in check_call
      raise CalledProcessError(retcode, cmd)
  E   subprocess.CalledProcessError: Command '&lt;...&gt;' returned non-zero exit status 1.

  During handling of the above exception, another exception occurred:
  test/py/tests/test_fs/conftest.py:272: in fs_obj_basic
      pytest.skip('Setup failed for filesystem: ' + fs_type + '. {}'.format(err))
  E   Skipped: Setup failed for filesystem: ext4. Command '&lt;...&gt;' returned non-zero exit status 1.

  During handling of the above exception, another exception occurred:
  test/py/tests/test_fs/conftest.py:277: in fs_obj_basic
      fsh.cleanup()
  test/py/tests/fs_helper.py:91: in cleanup
      os.remove(self.fs_img)
  E   TypeError: remove: path should be string, bytes or os.PathLike, not NoneType

Fix this by checking if the variable containing the filesystem path is
valid before attempting to call os.remove() on it.

Fixes: 3691b1e4ce074 ("test: Convert fs_helper to use a class")
Signed-off-by: Francesco Valla &lt;francesco@valla.it&gt;
</content>
</entry>
<entry>
<title>test: dm: fwu_mdata: add test for fwu_mdata_get_image_guid</title>
<updated>2026-05-12T13:52:01+00:00</updated>
<author>
<name>Dario Binacchi</name>
<email>dario.binacchi@amarulasolutions.com</email>
</author>
<published>2026-04-30T08:06:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/bootloaders/u-boot/u-boot.git/commit/?id=63fc73ff31c47df8dd3cb708dc34053972d5f4a0'/>
<id>urn:sha1:63fc73ff31c47df8dd3cb708dc34053972d5f4a0</id>
<content type='text'>
Add a new unit test for the fwu_mdata_get_image_guid() function.

Signed-off-by: Dario Binacchi &lt;dario.binacchi@amarulasolutions.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>test: cmd: part: add UUID lookup tests</title>
<updated>2026-05-12T13:52:01+00:00</updated>
<author>
<name>Dario Binacchi</name>
<email>dario.binacchi@amarulasolutions.com</email>
</author>
<published>2026-04-30T08:06:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/bootloaders/u-boot/u-boot.git/commit/?id=2dc71c48bf14aa22f24824dcd94550cc5277f402'/>
<id>urn:sha1:2dc71c48bf14aa22f24824dcd94550cc5277f402</id>
<content type='text'>
Extend the 'part' command unit tests to include partition lookup via
UUID.

This ensures that the 'number', 'start', and 'size' subcommands
consistently handle UUIDs as partition identifiers, maintaining
parity with the name-based lookup functionality.

Signed-off-by: Dario Binacchi &lt;dario.binacchi@amarulasolutions.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>test: cmd: add unit tests for part command</title>
<updated>2026-05-12T13:52:01+00:00</updated>
<author>
<name>Dario Binacchi</name>
<email>dario.binacchi@amarulasolutions.com</email>
</author>
<published>2026-04-30T08:06:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/bootloaders/u-boot/u-boot.git/commit/?id=a392450189d2434be19c194df560c8bc9335e337'/>
<id>urn:sha1:a392450189d2434be19c194df560c8bc9335e337</id>
<content type='text'>
Add unit tests for the 'part' command, specifically for the 'number',
'start', and 'size' subcommands.

These tests establish a baseline for the current partition lookup
functionality by name. This foundation will be used by subsequent
patches to extend the command, ensuring consistent behavior as new
features are introduced.

Signed-off-by: Dario Binacchi &lt;dario.binacchi@amarulasolutions.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>test: dm: part: add test for part_get_info_by_uuid</title>
<updated>2026-05-12T13:52:01+00:00</updated>
<author>
<name>Dario Binacchi</name>
<email>dario.binacchi@amarulasolutions.com</email>
</author>
<published>2026-04-30T08:06:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/bootloaders/u-boot/u-boot.git/commit/?id=27a928553a1327e48e7749cb7d5d65ddaeef3e9a'/>
<id>urn:sha1:27a928553a1327e48e7749cb7d5d65ddaeef3e9a</id>
<content type='text'>
Add a new unit test for the part_get_info_by_uuid() function.

Signed-off-by: Dario Binacchi &lt;dario.binacchi@amarulasolutions.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>acpi: fix initial RSDT and XSDT size</title>
<updated>2026-05-11T18:04:43+00:00</updated>
<author>
<name>Heinrich Schuchardt</name>
<email>heinrich.schuchardt@canonical.com</email>
</author>
<published>2026-04-20T16:47:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/bootloaders/u-boot/u-boot.git/commit/?id=3d09ec64ebabffdd962b1a683a6b239773065850'/>
<id>urn:sha1:3d09ec64ebabffdd962b1a683a6b239773065850</id>
<content type='text'>
When creating the RSDT and the XSDT table they contain no entries.
The table size therefore must equal the header size.

Without this change a NULL deference has been observed in
acpi_find_table() when running `ut dm` on sandbox64_defconfig
executed via `sudo ./u-boot -D`.

Fixes: 94ba15a3f13f ("x86: Move base tables to a writer function")
Fixes: 7e586f69070d ("acpi: Put table-setup code in its own function")
Fixes: ab5efd576c4e ("x86: acpi: Adjust order in acpi_table.c")
Fixes: 867bcb63e79f ("x86: Generate a valid ACPI table")
Signed-off-by: Heinrich Schuchardt &lt;heinrich.schuchardt@canonical.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;

Update dm_test_acpi_ctx_and_base_tables() in test/dm/acpi.c to expect
sizeof(struct acpi_table_header) for the initial table length (instead
of sizeof(*rsdt) / sizeof(*xsdt)), and to compute the checksum over
header-&gt;length bytes rather than the full struct size:
Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>test: fit: Use shared make_fname from fit_util</title>
<updated>2026-05-08T21:49:27+00:00</updated>
<author>
<name>Aristo Chen</name>
<email>aristo.chen@canonical.com</email>
</author>
<published>2026-05-01T05:51:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/bootloaders/u-boot/u-boot.git/commit/?id=28eed2103cc3eb8ef4c07ce514114961c0414aab'/>
<id>urn:sha1:28eed2103cc3eb8ef4c07ce514114961c0414aab</id>
<content type='text'>
test_fit.py declares a local make_fname closure that is byte-identical
to fit_util.make_fname. Drop the local copy and call the shared helper
at all seven call sites so there is one definition to maintain.

No behavioural change. Both implementations return
os.path.join(ubman.config.build_dir, basename).

Signed-off-by: Aristo Chen &lt;aristo.chen@canonical.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>test: dm: add PHY common props unit tests and sandbox DT nodes</title>
<updated>2026-05-06T09:07:22+00:00</updated>
<author>
<name>Lucien.Jheng</name>
<email>lucienzx159@gmail.com</email>
</author>
<published>2026-04-25T08:06:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/bootloaders/u-boot/u-boot.git/commit/?id=615c5367170272b5dda8b7ceae515f18dcfcafbf'/>
<id>urn:sha1:615c5367170272b5dda8b7ceae515f18dcfcafbf</id>
<content type='text'>
Add sandbox DM unit tests for the PHY common properties library and the
corresponding device tree test nodes to arch/sandbox/dts/test.dts.
Also enable CONFIG_PHY_COMMON_PROPS in configs/sandbox_defconfig so
the tests are built and run in the sandbox environment.

The test file covers rx/tx polarity lookups for all relevant cases:

  - missing property (defaults to PHY_POL_NORMAL)
  - single value without names array (applies to all modes)
  - count mismatch between values and names arrays (-EINVAL)
  - name found by exact match
  - name not found with no "default" fallback (-EINVAL)
  - name not found with a "default" entry (uses fallback value)
  - unsupported polarity value (-EOPNOTSUPP)

Ported from Linux KUnit test:
  linux/drivers/phy/phy-common-props-test.c

Signed-off-by: Lucien.Jheng &lt;lucienzx159@gmail.com&gt;
</content>
</entry>
</feed>
