Whamcloud - gitweb
defaults/e_script, run_e2fsck, d_loaddump, f_resize_inode,
authorTheodore Ts'o <tytso@mit.edu>
Thu, 16 Jun 2005 19:08:00 +0000 (15:08 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 16 Jun 2005 19:08:00 +0000 (15:08 -0400)
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.)

tests/ChangeLog
tests/d_loaddump/script
tests/defaults/e_script
tests/f_resize_inode/script
tests/f_swapfs/script
tests/r_move_itable/script
tests/r_resize_inode/script
tests/run_e2fsck
tests/test_config

index a1819f1..7ac2255 100644 (file)
@@ -1,3 +1,12 @@
+2005-06-16  Theodore Ts'o  <tytso@mit.edu>
+
+       * defaults/e_script, run_e2fsck, d_loaddump, f_resize_inode,
+               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.)
+
 2005-04-14  Theodore Ts'o  <tytso@mit.edu>
 
        * f_dup_resize: New test case
index 2fd5969..57f377c 100644 (file)
@@ -54,7 +54,7 @@ if [ "$status" = 0 ] ; then
        touch $test_name.ok
 else
        echo "failed"
-       diff -c $EXP $OUT > $test_name.failed
+       diff $DIFF_OPTS $EXP $OUT > $test_name.failed
 fi
 
 unset VERIFY_FSCK_OPT NATIVE_FSCK_OPT OUT EXP TEST_DATA VERIFY_DATA
index 3318ae7..b9150ba 100644 (file)
@@ -41,7 +41,7 @@ if [ "$status" = 0 ] ; then
     touch $test_name.ok
 else
     echo "failed"
-    diff -c $EXPECT $OUT > $test_name.failed
+    diff $DIFF_OPTS $EXPECT $OUT > $test_name.failed
 fi
 
 unset EXPECT OUT class instance
index bb4684f..558bd4a 100644 (file)
@@ -132,7 +132,7 @@ if [ "$status" = 0 ] ; then
        touch $test_name.ok
 else
        echo "failed"
-       diff -c $EXP $OUT > $test_name.failed
+       diff $DIFF_OPTS $EXP $OUT > $test_name.failed
        rm -f tmp_expect
 fi
 
index c41bec7..75f9fb4 100644 (file)
@@ -68,7 +68,7 @@ if $FSCK -SV > /dev/null 2>&1 ; then
            touch $test_name.ok
     else
            echo "failed"
-           diff -c $EXP $OUT > $test_name.failed
+           diff $DIFF_OPTS $EXP $OUT > $test_name.failed
     fi
     
     unset IMAGE VERIFY_FSCK_OPT SWAP_FSCK_OPT NATIVE_FSCK_OPT OUT EXP 
index 6603bb5..fe6cbb5 100644 (file)
@@ -103,7 +103,7 @@ if [ "$status" = 0 ] ; then
        touch $test_name.ok
 else
        echo "failed"
-       diff -c $EXP $OUT > $test_name.failed
+       diff $DIFF_OPTS $EXP $OUT > $test_name.failed
        rm -f tmp_expect
 fi
 
index ce5a133..60cf9b2 100644 (file)
@@ -90,7 +90,7 @@ if [ "$status" = 0 ] ; then
        touch $test_name.ok
 else
        echo "failed"
-       diff -c $EXP $OUT > $test_name.failed
+       diff $DIFF_OPTS $EXP $OUT > $test_name.failed
        rm -f tmp_expect
 fi
 
index e76bfae..0120375 100644 (file)
@@ -83,9 +83,9 @@ if [ "$SKIP_VERIFY" != "true" ] ; then
                touch $test_name.ok
        else
                echo "failed"
-               diff -c $EXP1 $OUT1 > $test_name.failed
+               diff $DIFF_OPTS $EXP1 $OUT1 > $test_name.failed
                if [ "$ONE_PASS_ONLY" != "true" ]; then
-                       diff -c $EXP2 $OUT2 >> $test_name.failed
+                       diff $DIFF_OPTS $EXP2 $OUT2 >> $test_name.failed
                fi
        fi
        rm -f tmp_expect
index 6ee2cc2..a484d8b 100644 (file)
@@ -15,6 +15,7 @@ TEST_ICOUNT=../tests/progs/test_icount
 LD_LIBRARY_PATH=../lib:../lib/ext2fs:../lib/e2p:../lib/et:../lib/ss
 DYLD_LIBRARY_PATH=../lib:../lib/ext2fs:../lib/e2p:../lib/et:../lib/ss
 TMPFILE=./test.img
+DIFF_OPTS=-c
 export LD_LIBRARY_PATH
 export DYLD_LIBRARY_PATH
 TZ=GMT