[Buildroot] [PATCH 4/4] support/testing: add test for a f2fs filesystem
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Thu Nov 8 20:35:28 UTC 2018
Hello,
On Tue, 6 Nov 2018 15:06:47 +0100, Grzegorz Blach wrote:
> Signed-off-by: Grzegorz Blach <grzegorz at blach.pl>
> ---
> .../testing/conf/f2fs-kernel-fragment.config | 5 ++
> support/testing/tests/fs/test_f2fs.py | 49 +++++++++++++++++++
> 2 files changed, 54 insertions(+)
> create mode 100644 support/testing/conf/f2fs-kernel-fragment.config
> create mode 100644 support/testing/tests/fs/test_f2fs.py
>
> diff --git a/support/testing/conf/f2fs-kernel-fragment.config b/support/testing/conf/f2fs-kernel-fragment.config
> new file mode 100644
> index 0000000000..0fca7e784b
> --- /dev/null
> +++ b/support/testing/conf/f2fs-kernel-fragment.config
> @@ -0,0 +1,5 @@
> +CONFIG_F2FS_FS=y
> +CONFIG_F2FS_STAT_FS=y
> +CONFIG_F2FS_FS_XATTR=y
> +CONFIG_F2FS_FS_POSIX_ACL=y
> +CONFIG_F2FS_FS_SECURITY=y
> diff --git a/support/testing/tests/fs/test_f2fs.py b/support/testing/tests/fs/test_f2fs.py
> new file mode 100644
> index 0000000000..f95d6dae07
> --- /dev/null
> +++ b/support/testing/tests/fs/test_f2fs.py
> @@ -0,0 +1,49 @@
> +import os
> +import subprocess
> +
> +import infra.basetest
> +
> +def dumpf2fs_getprop(out, prop):
> + for line in out:
> + fields = line.split(" = ")
> + if fields[0] == prop:
> + return fields[1].strip()
> +
> +class TestF4FS(infra.basetest.BRTest):
TestF4FS ? :-)
I've fixed this typo, and applied. Thanks!
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
More information about the buildroot
mailing list