diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 15:49:25 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 15:49:25 +0000 |
commit | 464df1d5e5ab1322e2dd0a7796939fff1aeefa9a (patch) | |
tree | 6a403684e0978f0287d7f0ec0e5aab1fd31a59e1 /tests/m_mkfs_overhead/script | |
parent | Initial commit. (diff) | |
download | e2fsprogs-upstream.tar.xz e2fsprogs-upstream.zip |
Adding upstream version 1.47.0.upstream/1.47.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/m_mkfs_overhead/script')
-rw-r--r-- | tests/m_mkfs_overhead/script | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/m_mkfs_overhead/script b/tests/m_mkfs_overhead/script new file mode 100644 index 0000000..3606fa2 --- /dev/null +++ b/tests/m_mkfs_overhead/script @@ -0,0 +1,29 @@ +test_description="test bg overhead calculation" + +OUT=$test_name.log +EXP=$test_dir/expect +FS_SIZE=1024 +MKE2FS_OPTS="-o hurd -b 1024 -m 0 -g 256 -N 3745" + +MKE2FS_SKIP_PROGRESS=true +MKE2FS_SKIP_CHECK_MSG=true +export MKE2FS_SKIP_PROGRESS MKE2FS_SKIP_CHECK_MSG +> $TMPFILE + +$MKE2FS -F -o Linux $MKE2FS_OPTS $TMPFILE $FS_SIZE 2>&1 | + sed -f $cmd_dir/filter.sed -e "s;$TMPFILE;test.img;" > $OUT + +rm -f $TMPFILE + +cmp -s $OUT $EXP +status1=$? + +if [ "$status1" = 0 ] ; then + echo "$test_name: $test_description: ok" + touch $test_name.ok +else + echo "$test_name: $test_description: failed" + diff $DIFF_OPTS $EXP $OUT > $test_name.failed +fi + +unset OUT EXP DESCRIPTION FS_SIZE MKE2FS_OPTS MKE2FS_SKIP_PROGRESS |