qa: update 660 to generate index.html, fixing pcp-testsuite runs
[pcp.git] / qa / 877
blobb21d9fe681983064680e09a71416bfe88c623047
1 #!/bin/sh
2 # PCP QA Test No. 877
3 # Exercise several PMCD connection timeout interfaces.
5 # Copyright (c) 2015 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 status=1 # failure is the default!
17 $sudo rm -rf $tmp $tmp.* $seq.full
18 trap "cd $here; rm -rf $tmp.*; exit \$status" 0 1 2 3 15
20 # real QA test starts here
21 echo "== early intervention"
22 src/clienttimeout -p -s -C -S -P
23 echo "== modify after context"
24 src/clienttimeout -C -S -P -r 1 -c 2
25 echo "== late setting only"
26 src/clienttimeout -S -P -r 0.5 -c 0.2
27 echo "== initial env vars"
28 PMCD_CONNECT_TIMEOUT=150 PMCD_REQUEST_TIMEOUT=60 \
29 src/clienttimeout -p -S -P -r 0.5 -c 0.2
31 # success, all done
32 status=0
33 exit