From b91390c21149875c26f8c7b37e3cbdfda0f419ae Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 4 Jul 2016 17:28:43 +0200 Subject: [PATCH] tests: add mke2fs.conf Add config for mkfs to get more predicatable results when using mkfs across variety of distributions. In future maybe use this per all tests as default. For now user has to specify in a test MKE2FS_CONFIG envvar to use it. --- test/Makefile.in | 1 + test/lib/mke2fs.conf | 45 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 test/lib/mke2fs.conf diff --git a/test/Makefile.in b/test/Makefile.in index f48d6ead9..94b3105d8 100644 --- a/test/Makefile.in +++ b/test/Makefile.in @@ -205,6 +205,7 @@ install: .tests-stamp lib/paths-installed $(INSTALL_DIR) $(DATADIR)/{shell,api,lib,dbus} $(EXECDIR) $(INSTALL_DATA) shell/*.sh $(DATADIR)/shell $(INSTALL_DATA) api/*.sh $(DATADIR)/api + $(INSTALL_DATA) lib/mke2fs.conf $(DATADIR)/lib $(INSTALL_PROGRAM) api/*.{t,py} $(DATADIR)/api $(INSTALL_PROGRAM) dbus/*.py $(DATADIR)/dbus/ $(INSTALL_DATA) lib/paths-installed $(DATADIR)/lib/paths diff --git a/test/lib/mke2fs.conf b/test/lib/mke2fs.conf new file mode 100644 index 000000000..81bed2132 --- /dev/null +++ b/test/lib/mke2fs.conf @@ -0,0 +1,45 @@ +[defaults] + base_features = sparse_super,filetype,resize_inode,dir_index,ext_attr + enable_periodic_fsck = 1 + blocksize = 4096 + inode_size = 256 + inode_ratio = 16384 + +[fs_types] + ext3 = { + features = has_journal + } + ext4 = { + features = has_journal,extent,huge_file,flex_bg,dir_nlink,extra_isize + inode_size = 256 + } + ext4dev = { + features = has_journal,extent,huge_file,flex_bg,dir_nlink,extra_isize + inode_size = 256 + options = test_fs=1 + } + small = { + blocksize = 1024 + inode_size = 128 + inode_ratio = 4096 + } + floppy = { + blocksize = 1024 + inode_size = 128 + inode_ratio = 8192 + } + news = { + inode_ratio = 4096 + } + largefile = { + inode_ratio = 1048576 + blocksize = -1 + } + largefile4 = { + inode_ratio = 4194304 + blocksize = -1 + } + hurd = { + blocksize = 4096 + inode_size = 128 + }