summaryrefslogtreecommitdiff
path: root/tests/f_resize_inode/script
Commit message (Collapse)AuthorAgeFilesLines
* tests: don't run sed multiple times on test outputAndreas Dilger2018-06-221-55/+28
| | | | | | | | | | | | Don't call sed multiple times on the output, and avoid the use of temporary files, or if possible. It would be convenient to use "sed -i" to only update the output file once, but this is not portable to all platforms. [ Fixed a few test regression failures --tytso ] Signed-off-by: Andreas Dilger <adilger@dilger.ca> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
* 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-6/+5
| | | | | | | | | | | | | | | | 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-19/+17
| | | | | | | | | | | | | | | | | | | | | | 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>
* tests: use make rules to run tests in parallelAndreas Dilger2012-05-291-7/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | Change the e2fsck/mke2fs/tune2fs/e2image/debugfs regression tests to be driven by Makefile rules instead of by a script loop. This allows the tests to be run in parallel like a build and reduces testing time significantly. One major change to the tests themselves is to printing the test name, description, and status together after the test has passed or failed, to avoid mixing lines from the tests. The other major change is to use unique temporary filenames for each test, which was mostly handled already via b4db1e4c7461a50e18c9fd135b9f1ba6f27e4390, but in some cases temporary files are changed to use $test_name.tmp to avoid any collision between running tests. On my old 2-CPU system it reduced the testing time from 160s to 40s. Much of the savings is from the MMP test delays running in parallel. It still takes the time of the slowest test, f_mmp_garbage, though there will be ongoing benefit in the future as more tests are added since the wallclock time will not increase linearly for each test. Tests were run with various combinations of "make -j", and "make -j2" through "make -j44" repeatedly without any test failures. Signed-off-by: Andreas Dilger <adilger@whamcloud.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
* e2fsprogs: Use punch hole as "discard" on regular filesLukas Czerner2011-09-151-0/+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-0/+6
| | | | | | | Avoid lots of tests failing if e2fsprogs is compiled with --disable-debugfs. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* tests: use /tmp for scratch filesTheodore Ts'o2011-07-091-5/+5
| | | | | | | The /tmp directory is often a memory based file system, and using this can speed up running the regression test suite. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* Change more "echo -n" to "printf" to avoid screen clutter.Matthias Andree2006-05-301-1/+1
| | | | | | Signed-off-by: Matthias Andree <matthias.andree@gmx.de>
* defaults/e_script, run_e2fsck, d_loaddump, f_resize_inode,Theodore Ts'o2005-06-161-1/+1
| | | | | | | | | f_swapfs, f_move_itable, f_resize_inode, test_config: Allow the diff options to be set in test_config so that diff -u can be used on platforms that have it. (To be done: checking whether diff can support -u in the configure script.)
* r_resize_inode, m_dasd_bs, m_large_file, m_meta_bg, m_no_opt,Theodore Ts'o2005-01-191-2/+2
| | | | | | m_read_opt, m_std, run_mke2fs, filter_dumpe2fs: Make tests portable so they pass correctly on a FreeBSD system.
* Fix f_resize_inode test to deal with the renaming of the debugfs commandTheodore Ts'o2005-01-071-4/+4
| | | | | set_inode to set_inode_field.
* Add two new tests, f_resize_inode, and r_resize_inode, to the regressionTheodore Ts'o2004-12-241-0/+140
test suite, which tests e2fsck and reszizefs2, respecitvely.