python api: fix syntax error in recent context changes
[pcp.git] / qa / 1025
blobfdf5af870c510286ad802554980caed4b139ca9d
1 #!/bin/sh
2 # PCP QA Test No. 1025
3 # Test out handling of > MAXHOSTNAMELEN (64) hostnames
5 seq=`basename $0`
6 echo "QA output created by $seq"
8 status=1 # failure is the default!
9 . ./common.qt
10 trap "_cleanup_qt; exit \$status" 0 1 2 3 15
12 which pmdumptext >/dev/null 2>&1 || _notrun "pmdumptext not installed"
13 rm -f $seq.full
15 # real QA test starts here
17 metric="sample.control"
18 cat <<EOF >$tmp.config
19 log mandatory on 1 sec {
20 $metric
22 EOF
24 pmlogger -s1 -c $tmp.config -l $tmp.log $tmp.arch 1>$tmp.out 2>&1
25 cat $tmp.log >> $seq.full
27 bighostname="abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcde"
28 pmloglabel -h $bighostname $tmp.arch >> $seq.full
30 pmdumplog -l $tmp.arch | sed -e '/commencing/d' -e '/ending/d'
32 pmdumptext -C -a $tmp.arch $bighostname:$metric
34 # success, all done
35 status=0
36 exit