* [Buildroot] [PATCH 1/1] support/testing: fs: new cramfs runtime test
@ 2026-08-15 13:04 Julien Olivain via buildroot
2026-08-27 21:09 ` Julien Olivain via buildroot
0 siblings, 1 reply; 2+ messages in thread
From: Julien Olivain via buildroot @ 2026-08-15 13:04 UTC (permalink / raw)
To: buildroot; +Cc: Julien Olivain
Signed-off-by: Julien Olivain <ju.o@free.fr>
---
Patch tested in:
https://gitlab.com/jolivain/buildroot/-/jobs/15915576004
---
DEVELOPERS | 2 +
support/testing/tests/fs/test_cramfs.py | 42 +++++++++++++++++++
.../fs/test_cramfs/linux-cramfs.fragment | 1 +
3 files changed, 45 insertions(+)
create mode 100644 support/testing/tests/fs/test_cramfs.py
create mode 100644 support/testing/tests/fs/test_cramfs/linux-cramfs.fragment
diff --git a/DEVELOPERS b/DEVELOPERS
index 4460523447..586407a200 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -1856,6 +1856,8 @@ F: support/testing/tests/boot/test_optee_os.py
F: support/testing/tests/boot/test_optee_os/
F: support/testing/tests/fs/test_btrfs.py
F: support/testing/tests/fs/test_btrfs/
+F: support/testing/tests/fs/test_cramfs.py
+F: support/testing/tests/fs/test_cramfs/
F: support/testing/tests/fs/test_erofs.py
F: support/testing/tests/fs/test_erofs/
F: support/testing/tests/fs/test_xfs.py
diff --git a/support/testing/tests/fs/test_cramfs.py b/support/testing/tests/fs/test_cramfs.py
new file mode 100644
index 0000000000..8beb27f4ab
--- /dev/null
+++ b/support/testing/tests/fs/test_cramfs.py
@@ -0,0 +1,42 @@
+import os
+
+import infra.basetest
+
+
+class TestCramfs(infra.basetest.BRTest):
+ kern_frag = \
+ infra.filepath("tests/fs/test_cramfs/linux-cramfs.fragment")
+ config = \
+ f"""
+ BR2_aarch64=y
+ BR2_TOOLCHAIN_EXTERNAL=y
+ BR2_LINUX_KERNEL=y
+ BR2_LINUX_KERNEL_CUSTOM_VERSION=y
+ BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.18.44"
+ BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
+ BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/aarch64-virt/linux.config"
+ BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="{kern_frag}"
+ BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
+ BR2_PACKAGE_CRAMFS=y
+ BR2_TARGET_ROOTFS_CRAMFS=y
+ # BR2_TARGET_ROOTFS_TAR is not set
+ """
+
+ def test_run(self):
+ disk = os.path.join(self.builddir, "images", "rootfs.cramfs")
+ kern = os.path.join(self.builddir, "images", "Image")
+ bootargs = ["root=/dev/vda"]
+ qemu_opts = ["-M", "virt", "-cpu", "cortex-a57", "-m", "512M",
+ "-drive", f"file={disk},if=virtio,format=raw"]
+ self.emulator.boot(arch="aarch64",
+ kernel=kern,
+ kernel_cmdline=bootargs,
+ options=qemu_opts)
+ self.emulator.login()
+
+ # We check our root filesystem is in cramfs format.
+ cmd = "mount | grep '/dev/root on / type cramfs'"
+ self.assertRunOk(cmd)
+
+ # We run cramfsck on the filesystem.
+ self.assertRunOk("cramfsck -v /dev/vda")
diff --git a/support/testing/tests/fs/test_cramfs/linux-cramfs.fragment b/support/testing/tests/fs/test_cramfs/linux-cramfs.fragment
new file mode 100644
index 0000000000..91bc54bed3
--- /dev/null
+++ b/support/testing/tests/fs/test_cramfs/linux-cramfs.fragment
@@ -0,0 +1 @@
+CONFIG_CRAMFS=y
--
2.55.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH 1/1] support/testing: fs: new cramfs runtime test
2026-08-15 13:04 [Buildroot] [PATCH 1/1] support/testing: fs: new cramfs runtime test Julien Olivain via buildroot
@ 2026-08-27 21:09 ` Julien Olivain via buildroot
0 siblings, 0 replies; 2+ messages in thread
From: Julien Olivain via buildroot @ 2026-08-27 21:09 UTC (permalink / raw)
To: Julien Olivain; +Cc: buildroot
On 15/08/2026 15:04, Julien Olivain via buildroot wrote:
> Signed-off-by: Julien Olivain <ju.o@free.fr>
Applied to master.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-08-27 21:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-15 13:04 [Buildroot] [PATCH 1/1] support/testing: fs: new cramfs runtime test Julien Olivain via buildroot
2026-08-27 21:09 ` Julien Olivain via buildroot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.