docs: tweak formatting in pmrep(1) archive folio example
[pcp.git] / qa / 875
blobbf20ef0aecd9e2471b23f35788724a6a983a6eb6
1 #!/bin/sh
2 # PCP QA Test No. 875
3 # Exercise parsing of unix: and local: hostspec suffixes.
5 # Copyright (c) 2013 Red Hat.
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 [ $PCP_VER -ge 30802 ] || _notrun "No support for local:/unix: hostspecs"
17 _check_valgrind
19 status=1 # failure is the default!
20 $sudo rm -rf $tmp.* $seq.full
21 trap "cd $here; rm -rf $tmp.*; exit \$status" 0 1 2 3 15
23 _filter_socket()
25 sed -e "s,$PCP_RUN_DIR,/PCP_RUN_DIR,g"
28 # real QA test starts here
30 _run_valgrind src/parsehostattrs local:where/am/i.sock
31 _run_valgrind src/parsehostattrs local://tmp/holey.sock?user=pcpqa\&compress
32 _run_valgrind src/parsehostattrs local:? | _filter_socket
34 _run_valgrind src/parsehostattrs unix://tmp/holey.sock?compress\&exclusive
35 _run_valgrind src/parsehostattrs unix://?compress | _filter_socket
37 # success, all done
38 status=0
39 exit