#!/bin/sh
# PCP QA Test No. 840
# Test that pmcd advertises its presence using avahi
#
# Copyright (c) 2013-2014 Red Hat.  All Rights Reserved.
#

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

. ./common.discovery
_check_avahi_service

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

# real QA test starts here
_control_avahi_service
_verify_avahi_service

status=0
exit
