From de0097ec02fa908a13a560a311540958bd28bb3a Mon Sep 17 00:00:00 2001 From: Zen Date: Thu, 31 Oct 2024 17:04:26 -0500 Subject: [PATCH] add overlayfs test Signed-off-by: Zen --- tests/fs/overlayfs.toml | 6 ++++++ tests/test_filesystems.py | 3 +++ 2 files changed, 9 insertions(+) create mode 100644 tests/fs/overlayfs.toml diff --git a/tests/fs/overlayfs.toml b/tests/fs/overlayfs.toml new file mode 100644 index 00000000..be882ab8 --- /dev/null +++ b/tests/fs/overlayfs.toml @@ -0,0 +1,6 @@ +# Overlayfs test +modules = [ "ugrd.base.test", "ugrd.fs.overlayfs"] + +out_dir = "initramfs_test" +cpio_compression = false +autodetect_root_dm = false diff --git a/tests/test_filesystems.py b/tests/test_filesystems.py index 7c23814b..7952081e 100644 --- a/tests/test_filesystems.py +++ b/tests/test_filesystems.py @@ -18,6 +18,9 @@ def test_xfs(self): generator = InitramfsGenerator(logger=self.logger, config="tests/fs/xfs.toml") generator.build() + def test_overlayfs(self): + generator = InitramfsGenerator(logger=self.logger, config="tests/fs/overlayfs.toml") + generator.build() if __name__ == "__main__": main()