3 # exercise pmGetContextHostName and pmGetContextHostName_r
5 # Copyright (c) 2014 Ken McDonell. All Rights Reserved.
9 echo "QA output created by $seq"
11 # get standard environment, filters and checks
16 status
=1 # failure is the default!
17 $sudo rm -rf $tmp.
* $seq.full
18 trap "cd $here; rm -rf $tmp.*; exit \$status" 0 1 2 3 15
24 sed -e "s/$host/HOSTNAME/"
27 # real QA test starts here
28 for arg
in "" "-h $host" -L "-a archives/babylon.percpu_v2" "-h localhost" \
29 "-h local:" "-h unix:" \
30 "-h no.such.host.pcp.io" "-a /no/such/archive"
34 src
/getcontexthost
$arg 2>&1