Whamcloud - gitweb
Skip the r_resize_inode test if resize2fs is not compiled (due to
authorTheodore Ts'o <tytso@mit.edu>
Sat, 22 Jan 2005 00:52:03 +0000 (19:52 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 22 Jan 2005 00:52:03 +0000 (19:52 -0500)
configure's --disable-resizer option)

tests/ChangeLog
tests/r_resize_inode/script

index 2dd764c..7499e1b 100644 (file)
@@ -1,3 +1,8 @@
+2005-01-21  Theodore Ts'o  <tytso@mit.edu>
+
+       * r_resize_inode: Skip this test if resize2fs is not compiled (due
+               to configure's --disable-resizer option)
+
 2005-01-19  Theodore Ts'o  <tytso@mit.edu>
 
        * r_resize_inode, m_dasd_bs, m_large_file, m_meta_bg, m_no_opt,
index 339345c..7feb543 100644 (file)
@@ -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