summaryrefslogtreecommitdiff
path: root/tests/run_mke2fs
Commit message (Collapse)AuthorAgeFilesLines
* tests: remove redundant sed filteringAndreas Dilger2018-06-221-2/+2
| | | | | | | | | | | | | | Now that the majority of device name filtering is in filter.sed, it does not need to be specified explicitly for every test. Fix the error message printed in debugfs when opening the device to match that used in other tools. This simplifies the filtering, and will be helpful if debugfs messages are internationalized. [ Fixed up some test failures in m_hugefile t_uninit_bg_rm --tytso ] Signed-off-by: Andreas Dilger <adilger@dilger.ca> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
* tests: clean up $DEBUGFS_EXE usage in scriptsAndreas Dilger2018-06-221-1/+1
| | | | | | | | | | | | | | | | Instead of putting the entire test script under an implicit "if test -x $DEBUGFS_EXE" conditional (sometimes indenting the code, and sometimes not), rather check for the reverse and exit the test script early if $DEBUGFS_EXE is missing. In some places, tests were running $DEBUGFS_EXE directly, when they should be running $DEBUGFS (which will run with Fortify, or other options). [ Fixed up missing exit statement in f_detect_junk. --tytso ] Signed-off-by: Andreas Dilger <adilger@dilger.ca> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
* tests: clean up sed filtering of test outputAndreas Dilger2013-06-151-2/+5
| | | | | | | | | | | | | | | | | | | | | | The sed filters for test outputs that are used to remove build and test specific information (such as version strings, dates, times, UUIDs) were unconditionally deleting the first line of output. This would normally contain the tool version string, but in some cases contained other information that was being lost. This can lead to difficulty debugging test failures. The sed filtering has been changed to only remove the actual version strings. As well, similar filter strings were duplicated throughout many scripts, and "sed" and "tr" were often called multiple times in a pipeline. These have been consolidated into a single filter.sed file to avoid having to maintain these filters in multiple places. In a few cases, accidentally deleted messages have been restored to the expect output for the tests. In other cases, trivial whitespace has been changed in the expect files. Signed-off-by: Andreas Dilger <adilger@dilger.ca> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
* e2fsprogs: Use punch hole as "discard" on regular filesLukas Czerner2011-09-151-1/+1
| | | | | | | | | | | | | | | | | | | | If e2fsprogs tools (mke2fs, e2fsck) is run on regular file instead of on block device, we can use punch hole instead of regular discard command which would not work on regular file anyway. This gives us several advantages. First of all when e2fsck is run with '-E discard' parameter it will punch out all ununsed space from the image, hence trimming down the file system image. And secondly, when creating an file system on regular file (with '-E discard' which is default), we can use punch hole to clear the file content, hence we can skip inode table initialization, because reads from sparse area returns zeros. This will result in faster file system creation (without the need to specify lazy_itable_init) and smaller images. This commit also fixes some tests that would fail due to mke2fs showing discard progress, hence the output would differ. Signed-off-by: Lukas Czerner <lczerner@redhat.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
* tests: skip tests that require debugfs if debugfs has not been builtTheodore Ts'o2011-09-031-1/+10
| | | | | | | Avoid lots of tests failing if e2fsprogs is compiled with --disable-debugfs. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* Fix mke2fs tests to avoid needing any significant ^M (CR) charactersTheodore Ts'o2007-07-221-2/+2
| | | | Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* r_resize_inode, m_dasd_bs, m_large_file, m_meta_bg, m_no_opt,Theodore Ts'o2005-01-191-1/+1
| | | | | | m_read_opt, m_std, run_mke2fs, filter_dumpe2fs: Make tests portable so they pass correctly on a FreeBSD system.
* m_meta_bg: New test case to test the meta block group feature.Theodore Ts'o2003-09-031-0/+1
| | | | | | | | | | | m_raid_opt: New test case to test raid striping m_large_file: Fix description run_e2fsck, run_mke2fs, filter_dumpe2fs: Add dumpe2fs output to the test output for comparison. Add support for compressed expect scripts.
* Add regression tests for mke2fs.Theodore Ts'o2003-09-011-0/+14
Mke2fs has been modified to honor the MKE2FS_SKIP_PROGRESS, MKE2FS_DEVICE_SECTSIZE, and MKE2FS_SKIP_CHECK_MSG in order facilitate the regression testing.