3 # pmlogextract with schizo archives
5 # Copyright (c) 2015 Ken McDonell. All Rights Reserved.
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
26 # schizo.data3 schizo.data4
28 # real QA test starts here
29 for metric
in sample.bin sample.long.hundred sample.ulonglong.hundred \
30 schizo.version schizo.mumble schizo.foo schizo.data1 schizo.data2
32 echo "=== $metric ==="
34 [ "$metric" = schizo.mumble
] && xtra
=schizo.fumble
35 echo "$metric" >$tmp.config
37 if pmlogextract
-c $tmp.config archives
/schizo-B
$tmp.xtract
>$tmp.err
2>&1
39 echo "OK, metrics from intermediate archive ..."
40 pmdumplog
-z $tmp.xtract
$metric
43 echo "intermediate pmlogextract failed!"
47 if pmlogextract archives
/schizo-A
$tmp.xtract
$tmp.out
>$tmp.err
2>&1
49 echo "OK, metrics from final archive ..."
50 pmdumplog
-a -z $tmp.out
$metric $xtra
53 echo "final pmlogextract failed"