Whamcloud - gitweb
e2fsck: allow admin specify number of threads
[tools/e2fsprogs.git] / tests / f_multithread_logfile / script
1 LOG_FNAME="f_multithread_logfile_xxx"
2 FSCK_OPT="-fy -m1 -y -E log_filename=$LOG_FNAME"
3 SKIP_VERIFY="true"
4 ONE_PASS_ONLY="true"
5 SKIP_CLEANUP="true"
6
7 rm -f $LOG_FNAME.* $LOG_FNAME
8
9 . $cmd_dir/run_e2fsck
10
11 rm -f $test_name.ok $test_name.failed
12 cmp -s $OUT1 $EXP1
13 status1=$?
14
15 if [ "$status1" -eq 0 ]; then
16         if [ ! -f $LOG_FNAME -o ! -f $LOG_FNAME.0 ]; then
17                 echo "$LOG_FNAME or $LOG_FNAME.0 is not created" > $test_name.failed
18                 echo "$test_name: $test_description: failed"
19         else
20                 echo "$test_name: $test_description: ok"
21                 touch $test_name.ok
22         fi
23 else
24         diff $DIFF_OPTS $test_dir/expect.1 \
25                 $test_name.1.log >> $test_name.failed
26         echo "$test_name: $test_description: failed"
27 fi
28
29 unset IMAGE FSCK_OPT SECOND_FSCK_OPT OUT1 OUT2 EXP1 EXP2
30 unset SKIP_VERIFY SKIP_CLEANUP SKIP_GUNZIP ONE_PASS_ONLY PREP_CMD
31 unset DESCRIPTION SKIP_UNLINK AFTER_CMD PASS_ZERO
32 unset LOG_FINAME