test_fs: Add exfat tests
authorMarek Vasut <marex@denx.de>
Mon, 17 Mar 2025 03:12:50 +0000 (04:12 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 3 Apr 2025 02:00:59 +0000 (20:00 -0600)
commit8d0cc62a60b5b92a010f75fd61d9eb9cb8299567
treea2abb51a8793f5c8237c9f13d591b9251fc1dc64
parent99b976712b70ec6ddef239f4a00142fb014b0c77
test_fs: Add exfat tests

Add tests for the exfat filesystem. These tests are largely an
extension of the FS_GENERIC tests with the following notable
exceptions.

The filesystem image for exfat tests is generated using combination
of exfatprogs mkfs.exfat and python fattools. The fattols are capable
of generating exfat filesystem images too, but this is not used, the
fattools are only used as a replacement for dosfstools 'mcopy' and
'mdir', which are used to insert files and directories into existing
fatfs images and list existing fatfs images respectively, without the
need for superuser access to mount such images.

The exfat filesystem has no filesystem specific command, there is only
the generic filesystem command interface, therefore check_ubconfig()
has to special case exfat and skip check for CONFIG_CMD_EXFAT and
instead check for CONFIG_FS_EXFAT.

Signed-off-by: Marek Vasut <marex@denx.de>
test/py/requirements.txt
test/py/tests/fs_helper.py
test/py/tests/test_fs/conftest.py
test/py/tests/test_fs/fstest_helpers.py
test/py/tests/test_fs/test_ext.py
tools/docker/Dockerfile