|
Mike Gahagan |
ec75bf |
#!/bin/bash
|
|
Mike Gahagan |
ec75bf |
# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
|
|
Mike Gahagan |
ec75bf |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
Mike Gahagan |
ec75bf |
#
|
|
Mike Gahagan |
ec75bf |
# runtest.sh of /CoreOS/attr/Sanity/getfattr-ignores-NULs-in-output-when-using-text
|
|
Mike Gahagan |
ec75bf |
# Description: Test for getfattr ignores NULs in output when using "text"
|
|
Mike Gahagan |
ec75bf |
# Author: Jan Scotka <jscotka@redhat.com>
|
|
Mike Gahagan |
ec75bf |
#
|
|
Mike Gahagan |
ec75bf |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
Mike Gahagan |
ec75bf |
#
|
|
Mike Gahagan |
ec75bf |
# Copyright (c) 2011 Red Hat, Inc. All rights reserved.
|
|
Mike Gahagan |
ec75bf |
#
|
|
Mike Gahagan |
ec75bf |
# This copyrighted material is made available to anyone wishing
|
|
Mike Gahagan |
ec75bf |
# to use, modify, copy, or redistribute it subject to the terms
|
|
Mike Gahagan |
ec75bf |
# and conditions of the GNU General Public License version 2.
|
|
Mike Gahagan |
ec75bf |
#
|
|
Mike Gahagan |
ec75bf |
# This program is distributed in the hope that it will be
|
|
Mike Gahagan |
ec75bf |
# useful, but WITHOUT ANY WARRANTY; without even the implied
|
|
Mike Gahagan |
ec75bf |
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
Mike Gahagan |
ec75bf |
# PURPOSE. See the GNU General Public License for more details.
|
|
Mike Gahagan |
ec75bf |
#
|
|
Mike Gahagan |
ec75bf |
# You should have received a copy of the GNU General Public
|
|
Mike Gahagan |
ec75bf |
# License along with this program; if not, write to the Free
|
|
Mike Gahagan |
ec75bf |
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
|
Mike Gahagan |
ec75bf |
# Boston, MA 02110-1301, USA.
|
|
Mike Gahagan |
ec75bf |
#
|
|
Mike Gahagan |
ec75bf |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
Mike Gahagan |
ec75bf |
|
|
Mike Gahagan |
ec75bf |
# Include Beaker environment
|
|
Mike Gahagan |
ec75bf |
. /usr/bin/rhts-environment.sh
|
|
Mike Gahagan |
ec75bf |
. /usr/lib/beakerlib/beakerlib.sh
|
|
Mike Gahagan |
ec75bf |
|
|
Mike Gahagan |
ec75bf |
PACKAGE="attr"
|
|
Mike Gahagan |
ec75bf |
|
|
Mike Gahagan |
ec75bf |
rlJournalStart
|
|
Mike Gahagan |
ec75bf |
rlPhaseStartSetup
|
|
Mike Gahagan |
ec75bf |
rlAssertRpm $PACKAGE
|
|
Mike Gahagan |
ec75bf |
rlPhaseEnd
|
|
Mike Gahagan |
ec75bf |
|
|
Mike Gahagan |
ec75bf |
rlPhaseStartTest
|
|
Mike Gahagan |
ec75bf |
rlRun "getfattr -e text -d -m - /usr/bin/getfattr | grep 'security.selinux=\".*\"'" 0 "there must be ending quotes"
|
|
Mike Gahagan |
ec75bf |
rlPhaseEnd
|
|
Mike Gahagan |
ec75bf |
|
|
Mike Gahagan |
ec75bf |
rlJournalPrintText
|
|
Mike Gahagan |
ec75bf |
rlJournalEnd
|