#!/bin/sh
# PCP QA Test No. 727
# Check that pmwebd advertises its presence using avahi
#
# Copyright (c) 2014 Red Hat.
#

seq=`basename $0`
echo "QA output created by $seq"

. ./common.avahi
avahi_notrun_checks
[ -x $PCP_RC_DIR/pmwebd ] || _notrun "PCP web services not installed"
PCP_PMWEBDOPTIONS_PATH=$PCP_SYSCONF_DIR/pmwebd/pmwebd.options

status=1	# failure is the default!
$sudo rm -rf $tmp.* $seq.full
trap "avahi_cleanup; exit \$status" 0 1 2 3 15

# real QA test starts here
service=pmwebd
avahi_service
avahi_verify
status=0
exit
