pmrep: fix archive end time reporting
[pcp.git] / qa / 775
blob12ed3512e7369595297ad63acb15e99841d0f4ad
1 #!/bin/sh
2 # PCP QA Test No. 775
3 # Test using the pmfind app to find pmcd servers
5 # Copyright (c) 2014 Red Hat. All Rights Reserved.
8 seq=`basename $0`
9 echo "QA output created by $seq"
11 # get standard environment, filters and checks
12 . ./common.discovery
14 _get_libpcp_config
15 $service_discovery || _notrun "No support for service discovery"
17 # Make sure that at least one of the supported discovery mechanisms is available.
18 discovery_available=false
19 avahi-daemon --check 2>/dev/null && discovery_available=true
20 $discovery_available || _notrun "No discovery mechanisms are available"
22 status=1 # failure is the default!
23 $sudo rm -rf $tmp.* $seq.full
24 trap "cd $here; rm -rf $tmp.*; exit \$status" 0 1 2 3 15
26 # real QA test starts here
27 _control_service_discovery
29 echo "No arguments" | tee -a $here/$seq.full
30 pmfind | _filter_discovery_unresolved
31 echo "Exit status: $?"
33 echo "-s pmcd -r" | tee -a $here/$seq.full
34 pmfind -s pmcd -r | _filter_discovery_resolved
35 echo "Exit status: $?"
37 echo "-m all" | tee -a $here/$seq.full
38 pmfind -m all | _filter_discovery_unresolved
39 echo "Exit status: $?"
41 echo "-s pmcd -m all --resolve" | tee -a $here/$seq.full
42 pmfind -s pmcd -m all --resolve | _filter_discovery_resolved
43 echo "Exit status: $?"
45 echo "-q" | tee -a $here/$seq.full
46 pmfind -q
47 echo "Exit status: $?"
49 echo "-q -s pmcd" | tee -a $here/$seq.full
50 pmfind -q -s pmcd
51 echo "Exit status: $?"
53 echo "-q -m all" | tee -a $here/$seq.full
54 pmfind -q -m all
55 echo "Exit status: $?"
57 echo "-q -s pmcd -m all" | tee -a $here/$seq.full
58 pmfind -q -s pmcd -m all
59 echo "Exit status: $?"
61 # success, all done
62 status=0
64 exit