3 # Exercise pmlogextract handling of corrupt archive records.
5 # Copyright (c) 2014 Red Hat.
9 echo "QA output created by $seq"
11 # get standard environment, filters and checks
16 status
=1 # failure is the default!
17 $sudo rm -rf $tmp.
* $seq.full
18 trap "cd $here; rm -rf $tmp.*; exit \$status" 0 1 2 3 15
20 # real QA test starts here
21 echo "Running log extract on corrupt archive"
22 pmlogextract
-z archives
/ok-truncbin
.0 $tmp.log
2>$tmp.err
>$tmp.out
26 # verify an archive was created (up to the corruption point)
27 # - previously, no archive would be created at all.
28 echo && echo "Verifying new log has been created"
29 pmdumplog
-z -l $tmp.log
31 echo && echo "Verifying new log is not corrupt"