From: Theodore Ts'o Date: Sat, 22 Jan 2005 00:52:03 +0000 (-0500) Subject: Skip the r_resize_inode test if resize2fs is not compiled (due to X-Git-Tag: E2FSPROGS-1_36~34 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=02f61b88741ade4fbddf5f59994915a09ce95539;p=tools%2Fe2fsprogs.git Skip the r_resize_inode test if resize2fs is not compiled (due to configure's --disable-resizer option) --- diff --git a/tests/ChangeLog b/tests/ChangeLog index 2dd764c..7499e1b 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,8 @@ +2005-01-21 Theodore Ts'o + + * r_resize_inode: Skip this test if resize2fs is not compiled (due + to configure's --disable-resizer option) + 2005-01-19 Theodore Ts'o * r_resize_inode, m_dasd_bs, m_large_file, m_meta_bg, m_no_opt, diff --git a/tests/r_resize_inode/script b/tests/r_resize_inode/script index 339345c..7feb543 100644 --- a/tests/r_resize_inode/script +++ b/tests/r_resize_inode/script @@ -1,4 +1,10 @@ echo -n "resize2fs with resize_inode: " + +if ! test -x $RESIZE2FS; then + rm -f $test_name.ok $test_name.failed + echo "skipped" +else + FSCK_OPT=-yf OUT=$test_name.log if [ -f $test_dir/expect.gz ]; then @@ -78,8 +84,6 @@ echo dumpe2fs test.img >> $OUT $DUMPE2FS $TMPFILE 2>&1 | sed -f $cmd_dir/filter_dumpe2fs >> $OUT - - rm -f $test_name.ok $test_name.failed cmp -s $OUT $EXP status=$? @@ -95,3 +99,4 @@ fi unset IMAGE FSCK_OPT OUT EXP +fi #if test -x $RESIZE2FS; then