summaryrefslogtreecommitdiff
path: root/tests/run_mke2fs
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2003-09-01 09:28:18 -0400
committerTheodore Ts'o <tytso@mit.edu>2003-09-01 09:28:18 -0400
commit1cca86f5d886eeda2d3afb1206419ef4642c30ba (patch)
tree057698a085d5ec66371f05a6358fbea71cd13bda /tests/run_mke2fs
parent2a3a52367e5c1fb037c27d078e3f9c24f2b33fb4 (diff)
downloade2fsprogs-1cca86f5d886eeda2d3afb1206419ef4642c30ba.tar.gz
Add regression tests for mke2fs.
Mke2fs has been modified to honor the MKE2FS_SKIP_PROGRESS, MKE2FS_DEVICE_SECTSIZE, and MKE2FS_SKIP_CHECK_MSG in order facilitate the regression testing.
Diffstat (limited to 'tests/run_mke2fs')
-rw-r--r--tests/run_mke2fs14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/run_mke2fs b/tests/run_mke2fs
new file mode 100644
index 00000000..d1a06574
--- /dev/null
+++ b/tests/run_mke2fs
@@ -0,0 +1,14 @@
+if [ "$FS_SIZE"x = x ]; then
+ FS_SIZE=1024
+fi
+OUT1=$test_name.1.log
+OUT2=$test_name.2.log
+SKIP_GUNZIP=true
+ONE_PASS_ONLY=true
+MKE2FS_SKIP_PROGRESS=true
+MKE2FS_SKIP_CHECK_MSG=true
+export MKE2FS_SKIP_PROGRESS MKE2FS_SKIP_CHECK_MSG
+> $TMPFILE
+PREP_CMD='$MKE2FS -F $MKE2FS_OPTS $TMPFILE $FS_SIZE 2>&1 | sed -e 1d > $OUT1 ; $DEBUGFS -R features $TMPFILE 2>&1 | sed -e 1d >> $OUT1 ; echo " " >> $OUT1'
+. $cmd_dir/run_e2fsck
+unset FS_SIZE MKE2FS_OPTS MKE2FS_SKIP_PROGRESS