summaryrefslogtreecommitdiff
path: root/qa/720
blob: 3ecf1281210b54a7febbef2051f801fd0b2ed1a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh
# PCP QA Test No. 720
# Exercise the pmParseHostAttrsSpec API family

seq=`basename $0`
echo "QA output created by $seq"

# get standard environment, filters and checks
. ./common.product
. ./common.filter
. ./common.check

_check_valgrind
[ $PCP_VER -ge 3800 ] || _notrun "Installed libpcp lacks host parse APIs"

status=0	# success is the default!
$sudo rm -rf $tmp.* $seq.full
trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15

_run_valgrind src/parsehostattrs pcps://nas1.servers.com:44321,4321@firewall.servers.com:44322?compress
_run_valgrind src/parsehostattrs pcp://localhost:23?compress
_run_valgrind src/parsehostattrs pcp://some.host?user=pcpqa\&compress\&pass=blah
_run_valgrind src/parsehostattrs pcp://some.host?user=pcpqa
_run_valgrind src/parsehostattrs some.host?user=pcpqa
_run_valgrind src/parsehostattrs some.host
_run_valgrind src/parsehostattrs pcp://?compress