pmrep: fix archive end time reporting
[pcp.git] / qa / 710
blobfe057428b5f40d2093f9b6a4bc660b07524a825e
1 #!/bin/sh
2 # PCP QA Test No. 710
3 # Exercise python PMI layer using a real script
5 # Copyright (c) 2012 Red Hat.
8 seq=`basename $0`
9 echo "QA output created by $seq"
11 . ./common.python
13 status=1 # failure is the default!
14 $sudo rm -f $tmp.* $seq.full
15 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
17 $python -c 'from pcp import pmi' 2>/dev/null
18 test $? -eq 0 || _notrun 'Python pcp pmi module is not installed'
20 filter_dump()
22 _filter_pmdumplog | \
23 sed -e 's/value 0\.[0-9][0-9]*$/value DOUBLE/g'
26 # real QA test starts here
27 $python $here/src/check_import.py $tmp.pcplog >$tmp.out 2>&1
28 if [ $? -eq 0 ]
29 then
30 pmdumplog -a $tmp.pcplog 2>&1 | filter_dump
31 else
32 cat $tmp.out
33 echo "check_import python script gave non-zero result"
36 # success, all done
37 status=$?
38 exit