Blame Sanity/named-checkzone/runtest.sh

3bf810a
#!/bin/bash
3bf810a
# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
3bf810a
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3bf810a
#
3bf810a
#   runtest.sh of /CoreOS/bind/Sanity/named-checkzone
3bf810a
#   Description: Sanity/named-checkzone
3bf810a
#   Author: Petr Sklenar <psklenar@redhat.com>
3bf810a
#
3bf810a
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3bf810a
#
3bf810a
#   Copyright (c) 2015 Red Hat, Inc.
3bf810a
#
3bf810a
#   This program is free software: you can redistribute it and/or
3bf810a
#   modify it under the terms of the GNU General Public License as
3bf810a
#   published by the Free Software Foundation, either version 2 of
3bf810a
#   the License, or (at your option) any later version.
3bf810a
#
3bf810a
#   This program is distributed in the hope that it will be
3bf810a
#   useful, but WITHOUT ANY WARRANTY; without even the implied
3bf810a
#   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
3bf810a
#   PURPOSE.  See the GNU General Public License for more details.
3bf810a
#
3bf810a
#   You should have received a copy of the GNU General Public License
3bf810a
#   along with this program. If not, see http://www.gnu.org/licenses/.
3bf810a
#
3bf810a
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3bf810a
3bf810a
# Include Beaker environment
3bf810a
. /usr/share/beakerlib/beakerlib.sh || exit 1
3bf810a
e82b8c0
: ${PACKAGE:="bind"}
3bf810a
3bf810a
rlJournalStart
3bf810a
    rlPhaseStartSetup
3bf810a
        rlAssertRpm $PACKAGE
3bf810a
	rlRun "ls cptest2.tld.db"
3bf810a
    rlPhaseEnd
3bf810a
3bf810a
    rlPhaseStartTest "check zone file from bug 1215164"
3bf810a
	rlRun "named-checkzone cptest2.tld cptest2.tld.db"	
3bf810a
	rlRun "named-checkzone cptest2.tld cptest2.tld.db | grep 'add matching type SPF record'" 1
3bf810a
    rlPhaseEnd
3bf810a
3bf810a
rlJournalPrintText
3bf810a
rlJournalEnd