Lines Matching refs:test_name
5 TMPFILE=$(mktemp ./tmp-$test_name.XXXXXX)
10 echo "$test_name: $test_description: skipped for tmpfs (no O_DIRECT)"
14 echo "make the test image ..." > $test_name.log
15 $MKE2FS -q -F -o Linux -b 4096 -O mmp -E mmp_update_interval=1 $TMPFILE 100 >> $test_name.log 2>&1
18 echo "mke2fs -O mmp failed" > $test_name.failed
19 echo "$test_name: $test_description: failed"
30 # this will cause debugfs to create the $test_name.mark file once it has
32 MARKFILE=$test_name.new
35 echo "set mmp sequence to EXT2_MMP_SEQ_FSCK..." >> $test_name.log
37 $DEBUGFS -w $TMPFILE >> $test_name.log 2>&1 & ) > /dev/null 2>&1 &
38 echo "wait until debugfs has started ..." >> $test_name.log
43 echo "kill debugfs abruptly (simulates e2fsck failure) ..." >> $test_name.log
46 $E2MMPSTATUS $TMPFILE > $test_name.log 2>&1
49 echo "$E2MMPSTATUS with EXT2_MMP_SEQ_FSCK passed!" > $test_name.failed
50 echo "$test_name: $test_description: failed"
54 echo "e2fsck (should fail mmp_seq = EXT2_MMP_SEQ_FSCK) ..." >> $test_name.log
55 $FSCK $FSCK_OPT $TMPFILE >> $test_name.log 2>&1
58 echo "e2fsck with MMP as EXT2_MMP_SEQ_FSCK ran!" > $test_name.failed
59 echo "$test_name: $test_description: failed"
63 echo "clear mmp_seq with tune2fs ..." >> $test_name.log
64 $TUNE2FS -f -E clear_mmp $TMPFILE >> $test_name.log 2>&1
67 echo "tune2fs clearing EXT2_MMP_SEQ_FSCK failed" > $test_name.failed
68 echo "$test_name: $test_description: failed"
72 echo "run e2fsck again (should pass with clean mmp_seq) ..." >> $test_name.log
73 $FSCK $FSCK_OPT $TMPFILE >> $test_name.log 2>&1
76 echo "e2fsck after clearing EXT2_MMP_SEQ_FSCK failed"> $test_name.failed
77 echo "$test_name: $test_description: failed"
81 echo "$test_name: $test_description: ok"