qa: update 660 to generate index.html, fixing pcp-testsuite runs
[pcp.git] / qa / 792
bloba82ee4ffc66c7a98c9e1b935a92a6f4cfc08df40
1 #!/bin/sh
2 # PCP QA Test No. 792
3 # test $PCP_DEBUG
5 # Copyright (c) 2015 Ken McDonell. All Rights Reserved.
8 seq=`basename $0`
9 echo "QA output created by $seq"
11 # get standard environment, filters and checks
12 . ./common.product
13 . ./common.filter
14 . ./common.check
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 _filter()
22 sed \
23 -e '/^_/s/: .*/: .../' \
24 | _filter_dumpresult
27 # real QA test starts here
28 echo "=== all -D options ==="
29 pminfo -D profile,fetch,context -v sample.long >/dev/null 2>$tmp.err
30 _filter <$tmp.err
32 echo
33 echo '=== all $PCP_DEBUG options ==='
34 n=`pmdbg -D profile,fetch,context | sed -e 's/.* = //'`
35 PCP_DEBUG=$n pminfo -v sample.long >/dev/null 2>$tmp.err
36 _filter <$tmp.err
38 echo
39 echo '=== both -D and $PCP_DEBUG options with full overlap ==='
40 n=`pmdbg -D profile,fetch,context | sed -e 's/.* = //'`
41 PCP_DEBUG=$n pminfo -D profile,fetch,context -v sample.long >/dev/null 2>$tmp.err
42 _filter <$tmp.err
44 echo
45 echo '=== both -D and $PCP_DEBUG options with no overlap ==='
46 n=`pmdbg -D profile,context | sed -e 's/.* = //'`
47 PCP_DEBUG=$n pminfo -D fetch -v sample.long >/dev/null 2>$tmp.err
48 _filter <$tmp.err
50 # success, all done
51 status=0
53 exit