File: script

package info (click to toggle)
e2fsprogs 1.47.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 43,236 kB
  • sloc: ansic: 134,194; sh: 7,343; makefile: 5,324; awk: 524; perl: 376; cpp: 207; sed: 186; python: 23
file content (26 lines) | stat: -rw-r--r-- 672 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
test_description="e2fsck with repeated no"
FSCK_OPT=-f
OUT=$test_name.log
EXP=$test_dir/expect

gunzip < $test_dir/../f_yesall/image.gz > $TMPFILE

echo "nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn" | E2FSCK_FORCE_INTERACTIVE=y $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 $OUT.new > $OUT
rm -f $OUT.new

cmp -s $OUT $EXP
status=$?

if [ "$status" = 0 ] ; then
	echo "$test_name: $test_description: ok"
	touch $test_name.ok
else
	echo "$test_name: $test_description: failed"
	diff $DIFF_OPTS $EXP $OUT > $test_name.failed
	rm -f tmp_expect
fi

unset IMAGE FSCK_OPT OUT EXP