3 # Test using the pmfind app to find pmcd servers
5 # Copyright (c) 2014 Red Hat. All Rights Reserved.
9 echo "QA output created by $seq"
11 # get standard environment, filters and checks
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
47 echo "Exit status: $?"
49 echo "-q -s pmcd" |
tee -a $here/$seq.full
51 echo "Exit status: $?"
53 echo "-q -m all" |
tee -a $here/$seq.full
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: $?"