Update release notes, etc., for the 1.47.2 release
[e2fsprogs.git] / tests / d_corrupt_journal_nr_users / script
blob683cd48740a71bdf1cfbde7e8270c21fa384454e
1 if ! test -x $DEBUGFS_EXE; then
2         echo "$test_name: $test_description: skipped (no debugfs)"
3         return 0
4 fi
6 IMAGE=$test_dir/image.gz
7 EXP=$test_dir/expect
8 OUT=$test_name.log
9 gunzip < $IMAGE > $TMPFILE
11 $DUMPE2FS $TMPFILE >> $OUT.new 2>&1
12 sed -f $cmd_dir/filter.sed $OUT.new > $OUT
13 rm -f $TMPFILE $OUT.new
15 cmp -s $OUT $EXP
16 status=$?
18 if [ "$status" = 0 ] ; then
19         echo "$test_name: $test_description: ok"
20         touch $test_name.ok
21 else
22         echo "$test_name: $test_description: failed"
23         diff $DIFF_OPTS $EXP $OUT > $test_name.failed
24         rm -f $test_name.tmp