diff options
author | JP Abgrall <jpa@google.com> | 2014-03-06 13:50:20 -0800 |
---|---|---|
committer | JP Abgrall <jpa@google.com> | 2014-03-06 13:50:20 -0800 |
commit | 65f0aab98b20b5994a726ab90d355248bcddfffd (patch) | |
tree | 2b7c0cf831d8255e3b0d1bab367609100a7e0f18 /tests/r_resize_inode | |
parent | 66b7b06812cc7ae835e0c0ed2656d1a27580c5ed (diff) | |
download | android_external_e2fsprogs-65f0aab98b20b5994a726ab90d355248bcddfffd.tar.gz android_external_e2fsprogs-65f0aab98b20b5994a726ab90d355248bcddfffd.tar.bz2 android_external_e2fsprogs-65f0aab98b20b5994a726ab90d355248bcddfffd.zip |
Revert changes that moved from 1.41.14 to 1.42.9
Revert "e2fsck: Don't use e2fsck_global_ctx unless HAVE_SIGNAL_H"
commit e80e74c41d85ff93f3d212ba6512340f48054a93.
Revert "Merge remote-tracking branch 'linaro/linaro-1.42.9' into aosp_master"
This reverts commit e97b2b6fc82f840e84dfc631b87f21be44ff2421, reversing
changes made to 7e2fb9d09c245eba70ee008b78007315e9c0f1df.
Revert "Prepare for upstream 1.42.9"
This reverts commit 7e2fb9d09c245eba70ee008b78007315e9c0f1df.
Bug: 13340735
Change-Id: If48b153a95ef5f69f7cdccb00e23524abff3c5a8
Signed-off-by: JP Abgrall <jpa@google.com>
Diffstat (limited to 'tests/r_resize_inode')
-rw-r--r-- | tests/r_resize_inode/expect | 19 | ||||
-rw-r--r-- | tests/r_resize_inode/script | 44 |
2 files changed, 34 insertions, 29 deletions
diff --git a/tests/r_resize_inode/expect b/tests/r_resize_inode/expect index 786fe133..f4bee0fb 100644 --- a/tests/r_resize_inode/expect +++ b/tests/r_resize_inode/expect @@ -1,7 +1,7 @@ mke2fs -q -F -O resize_inode -o Linux -b 1024 -g 1024 test.img 16384 resize2fs test.img 65536 -Resizing the filesystem on test.img to 65536 (1k) blocks. -The filesystem on test.img is now 65536 blocks long. +Resizing the filesystem on ./test.img to 65536 (1k) blocks. +The filesystem on ./test.img is now 65536 blocks long. Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure @@ -11,6 +11,7 @@ Pass 5: Checking group summary information test_filesys: 11/16384 files (0.0% non-contiguous), 4513/65536 blocks Exit status is 0 dumpe2fs test.img + Filesystem volume name: <none> Last mounted on: <not available> Filesystem magic number: 0xEF53 @@ -447,8 +448,8 @@ Group 63: (Blocks 64513-65535) -------------------------------- mke2fs -q -F -O resize_inode -o Linux -b 1024 -g 1024 test.img 65536 resize2fs test.img 16384 -Resizing the filesystem on test.img to 16384 (1k) blocks. -The filesystem on test.img is now 16384 blocks long. +Resizing the filesystem on ./test.img to 16384 (1k) blocks. +The filesystem on ./test.img is now 16384 blocks long. Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure @@ -458,6 +459,7 @@ Pass 5: Checking group summary information test_filesys: 11/4096 files (0.0% non-contiguous), 2107/16384 blocks Exit status is 0 dumpe2fs test.img + Filesystem volume name: <none> Last mounted on: <not available> Filesystem magic number: 0xEF53 @@ -599,8 +601,8 @@ Group 15: (Blocks 15361-16383) Free inodes: 3841-4096 -------------------------------- resize2fs test.img 165536 -Resizing the filesystem on test.img to 165536 (1k) blocks. -The filesystem on test.img is now 165536 blocks long. +Resizing the filesystem on ./test.img to 165536 (1k) blocks. +The filesystem on ./test.img is now 165536 blocks long. Filesystem did not have a UUID; generating one. @@ -609,9 +611,12 @@ Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information + +test_filesys: ***** FILE SYSTEM WAS MODIFIED ***** test_filesys: 11/41472 files (0.0% non-contiguous), 8361/165536 blocks -Exit status is 0 +Exit status is 1 dumpe2fs test.img + Filesystem volume name: <none> Last mounted on: <not available> Filesystem magic number: 0xEF53 diff --git a/tests/r_resize_inode/script b/tests/r_resize_inode/script index 0f121383..aced9c4f 100644 --- a/tests/r_resize_inode/script +++ b/tests/r_resize_inode/script @@ -3,7 +3,7 @@ if test -x $RESIZE2FS_EXE; then FSCK_OPT=-yf OUT=$test_name.log if [ -f $test_dir/expect.gz ]; then - EXP=$test_name.tmp + EXP=tmp_expect gunzip < $test_dir/expect.gz > $EXP1 else EXP=$test_dir/expect @@ -14,17 +14,17 @@ cp /dev/null $OUT dd if=/dev/zero of=$TMPFILE bs=1k count=512 > /dev/null 2>&1 echo mke2fs -q -F -O resize_inode -o Linux -b 1024 -g 1024 test.img 16384 > $OUT -$MKE2FS -q -F -O resize_inode -o Linux -b 1024 -g 1024 $TMPFILE 16384 2>&1 | - sed -f $cmd_dir/filter.sed -e "s;$TMPFILE;test.img;" >> $OUT +$MKE2FS -q -F -O resize_inode -o Linux -b 1024 -g 1024 $TMPFILE 16384 2>&1 \ + | sed -e '1d' | grep -v "automatically checked" | + grep -v "whichever comes first" >> $OUT echo resize2fs test.img 65536 >> $OUT -$RESIZE2FS $TMPFILE 65536 2>&1 | - sed -f $cmd_dir/filter.sed -e "s;$TMPFILE;test.img;" >> $OUT +$RESIZE2FS $TMPFILE 65536 2>&1 | sed -e '1d' >> $OUT $FSCK $FSCK_OPT -N test_filesys $TMPFILE > $OUT.new 2>&1 status=$? echo Exit status is $status >> $OUT.new -sed -f $cmd_dir/filter.sed -e "s;$TMPFILE;test.img;" $OUT.new >> $OUT +sed -e '1d' $OUT.new | sed -e '/^JFS DEBUG:/d' | tr -d \\015 >> $OUT rm -f $OUT.new $DEBUGFS -R "set_super_value lastcheck 0" -w $TMPFILE >/dev/null 2>&1 @@ -33,24 +33,24 @@ $DEBUGFS -R "set_super_value mkfs_time 0" -w $TMPFILE >/dev/null 2>&1 $TUNE2FS -c 20 -U clear $TMPFILE >/dev/null 2>&1 echo dumpe2fs test.img >> $OUT -$DUMPE2FS $TMPFILE 2>&1 | sed -f $cmd_dir/filter.sed >> $OUT +$DUMPE2FS $TMPFILE 2>&1 | sed -f $cmd_dir/filter_dumpe2fs >> $OUT echo "--------------------------------" >> $OUT dd if=/dev/zero of=$TMPFILE bs=1k count=512 > /dev/null 2>&1 echo mke2fs -q -F -O resize_inode -o Linux -b 1024 -g 1024 test.img 65536 >> $OUT -$MKE2FS -q -F -O resize_inode -o Linux -b 1024 -g 1024 $TMPFILE 65536 2>&1 | - sed -f $cmd_dir/filter.sed -e "s;$TMPFILE;test.img;" >> $OUT +$MKE2FS -q -F -O resize_inode -o Linux -b 1024 -g 1024 $TMPFILE 65536 2>&1 \ + | sed -e '1d' | grep -v "automatically checked" | + grep -v "whichever comes first" >> $OUT echo resize2fs test.img 16384 >> $OUT -$RESIZE2FS $TMPFILE 16384 2>&1 | - sed -f $cmd_dir/filter.sed -e "s;$TMPFILE;test.img;" >> $OUT +$RESIZE2FS $TMPFILE 16384 2>&1 | sed -e '1d' >> $OUT $FSCK $FSCK_OPT -N test_filesys $TMPFILE > $OUT.new 2>&1 status=$? echo Exit status is $status >> $OUT.new -sed -f $cmd_dir/filter.sed -e "s;$TMPFILE;test.img;" $OUT.new >> $OUT +sed -e '1d' $OUT.new | sed -e '/^JFS DEBUG:/d' | tr -d \\015 >> $OUT rm -f $OUT.new $DEBUGFS -R "set_super_value lastcheck 0" -w $TMPFILE >/dev/null 2>&1 @@ -59,18 +59,17 @@ $DEBUGFS -R "set_super_value mkfs_time 0" -w $TMPFILE >/dev/null 2>&1 $TUNE2FS -c 20 -U clear $TMPFILE >/dev/null 2>&1 echo dumpe2fs test.img >> $OUT -$DUMPE2FS $TMPFILE 2>&1 | sed -f $cmd_dir/filter.sed >> $OUT +$DUMPE2FS $TMPFILE 2>&1 | sed -f $cmd_dir/filter_dumpe2fs >> $OUT echo "--------------------------------" >> $OUT echo resize2fs test.img 165536 >> $OUT -$RESIZE2FS $TMPFILE 165536 2>&1 | - sed -f $cmd_dir/filter.sed -e "s;$TMPFILE;test.img;" >> $OUT +$RESIZE2FS $TMPFILE 165536 2>&1 | sed -e '1d' >> $OUT $FSCK $FSCK_OPT -N test_filesys $TMPFILE > $OUT.new 2>&1 status=$? echo Exit status is $status >> $OUT.new -sed -f $cmd_dir/filter.sed -e "s;$TMPFILE;test.img;" $OUT.new >> $OUT +sed -e '1d' $OUT.new | sed -e '/^JFS DEBUG:/d' | tr -d \\015 >> $OUT rm -f $OUT.new $DEBUGFS -R "set_super_value lastcheck 0" -w $TMPFILE >/dev/null 2>&1 @@ -79,23 +78,24 @@ $DEBUGFS -R "set_super_value mkfs_time 0" -w $TMPFILE >/dev/null 2>&1 $TUNE2FS -c 20 -U clear $TMPFILE >/dev/null 2>&1 echo dumpe2fs test.img >> $OUT -$DUMPE2FS $TMPFILE 2>&1 | sed -f $cmd_dir/filter.sed >> $OUT +$DUMPE2FS $TMPFILE 2>&1 | sed -f $cmd_dir/filter_dumpe2fs >> $OUT -rm -f $TMPFILE +rm -f $test_name.ok $test_name.failed $TMPFILE cmp -s $OUT $EXP status=$? if [ "$status" = 0 ] ; then - echo "$test_name: $test_description: ok" + echo "ok" touch $test_name.ok else - echo "$test_name: $test_description: failed" + echo "failed" diff $DIFF_OPTS $EXP $OUT > $test_name.failed - rm -f $test_name.tmp + rm -f tmp_expect fi unset IMAGE FSCK_OPT OUT EXP else #if test -x $RESIZE2FS; then - echo "$test_name: $test_description: skipped" + rm -f $test_name.ok $test_name.failed + echo "skipped" fi |