3 # pmlogextract grok new archives with embedded <mark>s
5 # Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved.
9 echo "QA output created by $seq"
11 # get standard filters
16 status
=1 # failure is the default!
17 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
22 pmdumplog
-z $tmp 2>&1 |
grep '<mark>' >$tmp.merge
23 cat $tmp.one
$tmp.other \
24 |
diff -c - $tmp.merge \
26 -e 's/^\*\*\* Standard .*/*** concatenated from input archives/' \
27 -e 's/^\*\*\* -.*/*** concatenated from input archives/' \
28 -e 's/^--- \/.*/--- merged archive/'
31 # deal with an annoying libc error ... using TZ=:Australia/Melbourne
32 # causes the -z option to report the wrong time, at least for some
38 # real QA test starts here
41 echo 'marks in one archive ...'
42 pmdumplog
-z archives
/19970807.09.54 2>&1 |
grep '<mark>' >$tmp.one
46 echo 'marks in other archive ...'
47 pmdumplog
-z archives
/19970807.09.59 2>&1 |
grep '<mark>' >$tmp.other
51 echo 'pmlogextract ... and marks ... and diffs (expect an extra one in the middle)'
52 pmlogextract archives
/19970807.09.54 archives
/19970807.09.59 $tmp
56 echo 'pmlogextract ... and marks ... and diffs (expect an extra one in the middle)'
57 rm -f $tmp.0 $tmp.meta
$tmp.index
58 pmlogextract archives
/19970807.09.54 archives
/19970807.09.59 $tmp