]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
ChangeLog, expect, script:
authorTheodore Ts'o <tytso@mit.edu>
Fri, 1 Jun 2001 15:14:38 +0000 (15:14 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 1 Jun 2001 15:14:38 +0000 (15:14 +0000)
  d_loaddump: Fix test script to remove bash'isms, and make the shell
   script more robust in cases where the user has overridden CFLAGS so
   that the debugfs binary isn't compiled with -g, and is smaller than
   128k.  Also specify the blocksize to be used explictly to avoid
   problems with people who change the mke2fs default parameters.

tests/ChangeLog
tests/d_loaddump/expect
tests/d_loaddump/script

index 3564e592ade74fbea4fef215d9ac9340b6a6f1b2..3e1f672835ae501e9b4948c37bfa47e9edeeb8f0 100644 (file)
@@ -1,3 +1,12 @@
+2001-06-01  Theodore Tso  <tytso@valinux.com>
+
+       * d_loaddump: Fix test script to remove bash'isms, and make the
+               shell script more robust in cases where the user has
+               overridden CFLAGS so that the debugfs binary isn't
+               compiled with -g, and is smaller than 128k.  Also specify
+               the blocksize to be used explictly to avoid problems with
+               people who change the mke2fs default parameters.
+
 2001-05-25  Theodore Tso  <tytso@valinux.com>
 
        * Release of E2fsprogs 1.20
index 14d6a2034c4e34308f123b8f1163efc3da883599..5469a839636495f9803febad5012d68e2db98dd0 100644 (file)
@@ -1,5 +1,5 @@
 debugfs load/dump test
-mke2fs -Fq ./test.img 512
+mke2fs -Fq -b 1024 ./test.img 512
 Exit status is 0
 debugfs -R ''write test.data test_data'' -w ./test.img
 Allocated inode: 12
index a030b891ce4c0833c54110639d1a2956caf5d0b7..2fd5969eea49e5b6f067585abc922ffce1f9c14b 100644 (file)
@@ -7,15 +7,15 @@ VERIFY_DATA=test.verify
 
 echo "debugfs load/dump test" > $OUT
 
-dd if=/dev/zero of=$TMPFILE bs=1k count=512 >& /dev/null
+dd if=/dev/zero of=$TMPFILE bs=1k count=512 > /dev/null 2>&1
 
-echo "mke2fs -Fq $TMPFILE 512" >> $OUT
+echo "mke2fs -Fq -b 1024 $TMPFILE 512" >> $OUT
 
-$MKE2FS -Fq $TMPFILE 512 >& /dev/null
+$MKE2FS -Fq $TMPFILE 512 > /dev/null 2>&1
 status=$?
 echo Exit status is $status >> $OUT
 
-dd if=$DEBUGFS of=$TEST_DATA bs=1k count=128 >& /dev/null
+dd if=$DEBUGFS of=$TEST_DATA bs=128k count=1 conv=sync > /dev/null 2>&1 
 echo "file fragment odd size" >> $TEST_DATA
 
 echo "debugfs -R ''write $TEST_DATA test_data'' -w $TMPFILE" > $OUT.new