docs: tweak formatting in pmrep(1) archive folio example
[pcp.git] / qa / 993
blob2f2b33a57698097984d91c1da47dbfb442f811ff
1 #!/bin/sh
2 # PCP QA Test No. 993
3 # pmlogger and pmdumplog with metrics that have more than one name
4 # in the PMNS.
6 # Copyright (c) 2015 Ken McDonell. All Rights Reserved.
9 seq=`basename $0`
10 echo "QA output created by $seq"
12 # get standard environment, filters and checks
13 . ./common.product
14 . ./common.filter
15 . ./common.check
17 status=1 # failure is the default!
18 $sudo rm -rf $tmp.* $seq.full
19 trap "cd $here; rm -rf $tmp.*; exit \$status" 0 1 2 3 15
21 _filter()
23 grep '^PMID' \
24 | LC_COLLATE=POSIX sort
27 # real QA test starts here
28 cat <<End-of-File >$tmp.config
29 log mandatory on default {
30 sample.dupnames
32 log mandatory on default {
33 sample.bin
34 sample.write_me
35 sample.lights
36 sample.float.ten
37 sample.double.ten
39 End-of-File
41 pmlogger -c $tmp.config -s 4 -l $tmp.log -t 1sec $tmp
42 cat $tmp.log >>$seq.full
44 pmdumplog -d $tmp | _filter
46 # success, all done
47 status=0
49 exit