• 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
10$MKE2FS -F -o Linux -b 1024 -O journal_dev,metadata_csum -T ext4 $TMPFILE 4096 > $OUT 2>&1
11echo "tune2fs external journal" >> $OUT
12$TUNE2FS -i 0 $TMPFILE >> $OUT 2>&1
13rm -f $TMPFILE
14
15sed -f $cmd_dir/filter.sed < $OUT > $OUT.new
16mv $OUT.new $OUT
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