Merge branch 'master' of git://git.pcp.io/pcp into qt
[pcp.git] / qa / 860
bloba1e284f1b80bd7ada0c5527945b11098e7c27816
1 #!/bin/sh
2 # PCP QA Test No. 860
3 # Exercise the fix for oss bugzilla #1101.
5 # Copyright (c) 2015 Red Hat. 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 _get_libpcp_config
17 $unix_domain_sockets || _notrun "No unix domain socket support available"
18 pminfo proc.memory.maps >/dev/null 2>&1 || _notrun "proc metric unavailable"
20 status=1 # failure is the default!
21 $sudo rm -rf $tmp.* $seq.full
22 trap "cd $here; rm -rf $tmp.*; exit \$status" 0 1 2 3 15
24 rootpid=1
25 connect="unix:"
26 #connect=localhost
28 _filter_pid()
30 sed \
31 -e "/ $rootpid /s//PID /g" \
32 -e "s/ $rootpid not available/ PID not available/g" \
33 -e "s/`hostname`/HOSTNAME/" \
34 # end
37 # real QA test starts here
38 pmval -s 1 -h $connect -i $rootpid proc.memory.maps | _filter_pid
39 status=$?
40 exit