u-boot/test
Marek Vasut 6592425c6d test_fs: Allow testing FS_GENERIC
The generic filesystem interface was so far untested. The interface
is similar to the FS specific interfaces with FS specific prefixes,
like ext4ls, fatmkdir, ... but it does not have any prefixes, i.e.
it provides plain ls, mkdir, ... commands.

Extend the test parameters to include 'fs_cmd_prefix' and optionally
'fs_cmd_write' parameters. The 'fs_cmd_prefix' allow specifying the
filesystem specific command prefix, like 'ext4' in 'ext4ls'. The
'fs_cmd_write' allows selecting between 'write'/'save' command name
for storing files into the filesystem, see last paragraph.

Introduce new 'fs_generic' fs_type which is used to parametrize existing
tests and run them without any prefixes if detected, thus testing the
generic filesystem interface. Use the fatfs as the backing store for the
generic FS tests.

The check_ubconfig needs to be slightly adjusted to avoid test for
CMD_FS_GENERIC_WRITE which does not exist separately from CMD_FS_GENERIC.

The CMD_FS_GENERIC does not provide generic 'write' command, instead
the generic equivalent command is called 'save' . Add simple ternary
oeprator to use 'save' command for CMD_FS_GENERIC tests and '..write'
commands for filesystem specific tests.

Enable generic filesystem tests for basic/extended/mkdir/unlink tests.

Signed-off-by: Marek Vasut <marex@denx.de>
2025-04-02 20:00:59 -06:00
..
boot test: Drop suites.h 2025-02-11 20:12:36 -06:00
cmd test: Drop suites.h 2025-02-11 20:12:36 -06:00
common test: event: Correct usage of IS_ENABLED() macro in test/common/event.c 2025-03-13 14:21:42 -06:00
dm Merge branch 'graph' of https://source.denx.de/u-boot/custodians/u-boot-tegra into next 2025-03-12 07:55:47 -06:00
env test: Drop suites.h 2025-02-11 20:12:36 -06:00
fdt_overlay test: Drop suites.h 2025-02-11 20:12:36 -06:00
fs test: fs: fs-test: Move the tests to use sha256sum 2024-01-11 21:19:25 -05:00
fuzz global: Rename SPL_ to XPL_ 2024-10-11 11:44:48 -06:00
hush test: Drop the function for running hush tests 2025-01-24 14:34:40 -06:00
image spl: Create a function to init spl_load_info 2024-08-23 15:58:42 -06:00
lib Merge patch series "lmb: miscellaneous fixes and improvements" 2025-03-17 19:39:36 -06:00
log test: Drop suites.h 2025-02-11 20:12:36 -06:00
optee test: Drop suites.h 2025-02-11 20:12:36 -06:00
py test_fs: Allow testing FS_GENERIC 2025-04-02 20:00:59 -06:00
stdint Revert "Merge patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet"" 2024-05-19 08:16:36 -06:00
cmd_ut.c test: Update documentation 2025-02-11 20:12:36 -06:00
Kconfig test: Make all tests depend on UNIT_TEST 2025-02-11 20:10:59 -06:00
Makefile test: Move fdt-overlay-test rule into test/ 2025-02-11 20:10:59 -06:00
run test: Run the VPL tests with 'make check' 2023-04-03 06:53:53 +12:00
test-main.c test: Allow running a selection of suites 2025-02-11 20:12:36 -06:00
ut.c test: Move stats into a struct 2025-01-24 14:34:41 -06:00