• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1FSCK_OPT=-fy
2OUT=$test_name.log
3if [ -f $test_dir/expect.gz ]; then
4	EXP=$test_name.tmp
5	gunzip < $test_dir/expect.gz > $EXP1
6else
7	EXP=$test_dir/expect
8fi
9
10cp /dev/null $OUT
11
12$MKE2FS -F -o Linux -b 1024 -O journal_dev,metadata_csum -T ext4 $TMPFILE 4096 2>&1 | sed -f $cmd_dir/filter.sed >> $OUT 2>&1
13echo "tune2fs external journal" >> $OUT
14$TUNE2FS -i 0 $TMPFILE 2>&1 | sed -f $cmd_dir/filter.sed >> $OUT
15
16rm -f $TMPFILE
17
18cmp -s $OUT $EXP
19status=$?
20
21if [ "$status" = 0 ] ; then
22	echo "$test_name: $test_description: ok"
23	touch $test_name.ok
24else
25	echo "$test_name: $test_description: failed"
26	diff $DIFF_OPTS $EXP $OUT > $test_name.failed
27	rm -f $test_name.tmp
28fi
29
30unset IMAGE FSCK_OPT OUT EXP
31