qa: update 660 to generate index.html, fixing pcp-testsuite runs
[pcp.git] / qa / 980
blob4e88e8f2fbeb24f744bad391d8110f85a6fed46f
1 #!/bin/sh
2 # PCP QA Test No. 980
3 # Basic archive mode validation of the Python pmcc module
4 # (pmcc -> Performance Metrics Convenience Classes)
6 # Copyright (c) 2014 Red Hat.
9 seq=`basename $0`
10 echo "QA output created by $seq"
12 . ./common.python
13 status=1 # failure is the default!
14 $sudo rm -rf $tmp.* $seq.full
15 trap "cd $here; rm -rf $tmp.*; exit \$status" 0 1 2 3 15
17 $python -c 'from pcp import pmcc' 2>/dev/null
18 test $? -eq 0 || _notrun 'Python pcp pmcc module is not installed'
20 # real QA test starts here
21 $python $here/src/test_pmcc.py -a archives/pmatop-log.0 >$seq.full 2>&1
22 _check_unittest archive $seq.full
23 status=$?
24 exit