• 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 2>&1 | sed -f $cmd_dir/filter.sed > $OUT
11$DUMPE2FS -h $TMPFILE 2>&1 | grep 'Filesystem features:' >> $OUT
12
13rm -f $TMPFILE
14
15cmp -s $OUT $EXP
16status=$?
17
18if [ "$status" = 0 ] ; then
19	echo "$test_name: $test_description: ok"
20	touch $test_name.ok
21else
22	echo "$test_name: $test_description: failed"
23	diff $DIFF_OPTS $EXP $OUT > $test_name.failed
24	rm -f $test_name.tmp
25fi
26
27unset IMAGE FSCK_OPT OUT EXP
28