|
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.yml 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 |
- hosts: '{{ hosts | default("localhost") }}'
|
|
Mike Gahagan |
ec75bf |
vars:
|
|
Mike Gahagan |
ec75bf |
package: attr
|
|
Mike Gahagan |
ec75bf |
tasks:
|
|
Mike Gahagan |
ec75bf |
- name: Check if package exists
|
|
Mike Gahagan |
ec75bf |
command: "rpm -q {{ package }}"
|
|
Mike Gahagan |
ec75bf |
args:
|
|
Mike Gahagan |
ec75bf |
warn: no
|
|
Mike Gahagan |
ec75bf |
- name: Runtest
|
|
Mike Gahagan |
ec75bf |
shell: "getfattr -e text -d -m - /usr/bin/getfattr | grep 'security.selinux=\".*\"'"
|