3 # Try pmlogrewite with an archive containing derived metrics
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 $tmp.
* $seq.full
18 trap "cd $here; rm -rf $tmp.*; exit \$status" 0 1 2 3 15
25 # real QA test starts here
26 echo "===511.2048.1 case ==="
27 cat <<End-of-File >$tmp.rewrite
32 rm -f $tmp.0 $tmp.index
$tmp.meta
33 pmlogrewrite
-c $tmp.rewrite archives
/log-derived
$tmp 2>&1 | _filter
37 echo "===511.2048.* case ==="
38 cat <<End-of-File >$tmp.rewrite
43 rm -f $tmp.0 $tmp.index
$tmp.meta
44 pmlogrewrite
-c $tmp.rewrite archives
/log-derived
$tmp 2>&1 | _filter
48 echo "===511.*.* case ==="
49 cat <<End-of-File >$tmp.rewrite
54 rm -f $tmp.0 $tmp.index
$tmp.meta
55 pmlogrewrite
-c $tmp.rewrite archives
/log-derived
$tmp 2>&1 | _filter