psss / tests / selinux

Forked from tests/selinux 6 years ago
Clone

Blame selinux-policy/bz624405-pcsc-and-similar/Makefile

600c907
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
600c907
#
600c907
#   Makefile of /CoreOS/selinux-policy/Regression/bz624405-pcsc-and-similar
600c907
#   Description: SELinux interferes with pcscd
600c907
#   Author: Milos Malik <mmalik@redhat.com>
600c907
#
600c907
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
600c907
#
600c907
#   Copyright (c) 2021 Red Hat, Inc. All rights reserved.
600c907
#
600c907
#   This copyrighted material is made available to anyone wishing
600c907
#   to use, modify, copy, or redistribute it subject to the terms
600c907
#   and conditions of the GNU General Public License version 2.
600c907
#
600c907
#   This program is distributed in the hope that it will be
600c907
#   useful, but WITHOUT ANY WARRANTY; without even the implied
600c907
#   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
600c907
#   PURPOSE. See the GNU General Public License for more details.
600c907
#
600c907
#   You should have received a copy of the GNU General Public
600c907
#   License along with this program; if not, write to the Free
600c907
#   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
600c907
#   Boston, MA 02110-1301, USA.
600c907
#
600c907
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
600c907
600c907
export TEST=/CoreOS/selinux-policy/Regression/bz624405-pcsc-and-similar
600c907
export TESTVERSION=1.0
600c907
600c907
BUILT_FILES=
600c907
600c907
FILES=$(METADATA) runtest.sh Makefile PURPOSE
600c907
600c907
.PHONY: all install download clean
600c907
600c907
run: $(FILES) build
600c907
	./runtest.sh
600c907
600c907
build: $(BUILT_FILES)
600c907
	chmod a+x runtest.sh
600c907
	chcon -t bin_t runtest.sh
600c907
600c907
clean:
600c907
	rm -f *~ $(BUILT_FILES)
600c907
600c907
include /usr/share/rhts/lib/rhts-make.include
600c907
600c907
$(METADATA): Makefile
600c907
	@echo "Owner:           Milos Malik <mmalik@redhat.com>" > $(METADATA)
600c907
	@echo "Name:            $(TEST)" >> $(METADATA)
600c907
	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)
600c907
	@echo "Path:            $(TEST_DIR)" >> $(METADATA)
600c907
	@echo "Description:     SELinux interferes with pcscd" >> $(METADATA)
600c907
	@echo "Type:            Regression" >> $(METADATA)
600c907
	@echo "TestTime:        15m" >> $(METADATA)
600c907
	@echo "RunFor:          selinux-policy" >> $(METADATA)
600c907
	@echo "RunFor:          pcsc-lite" >> $(METADATA)
600c907
	@echo "Requires:        audit" >> $(METADATA)
600c907
	@echo "Requires:        expect" >> $(METADATA)
600c907
	@echo "Requires:        grep" >> $(METADATA)
600c907
	@echo "Requires:        initscripts" >> $(METADATA)
600c907
	@echo "Requires:        libselinux" >> $(METADATA)
600c907
	@echo "Requires:        libselinux-utils" >> $(METADATA)
600c907
	@echo "Requires:        pcsc-lite" >> $(METADATA)
600c907
	@echo "Requires:        policycoreutils" >> $(METADATA)
600c907
	@echo "Requires:        procps" >> $(METADATA)
600c907
	@echo "Requires:        selinux-policy" >> $(METADATA)
600c907
	@echo "Requires:        selinux-policy-mls" >> $(METADATA)
600c907
	@echo "Requires:        selinux-policy-targeted" >> $(METADATA)
600c907
	@echo "Requires:        setools" >> $(METADATA)
600c907
	@echo "Requires:        setools-console" >> $(METADATA)
600c907
	@echo "RhtsRequires:    library(selinux-policy/common)" >> $(METADATA)
600c907
	@echo "Priority:        Normal" >> $(METADATA)
600c907
	@echo "License:         GPLv2" >> $(METADATA)
600c907
	@echo "Confidential:    no" >> $(METADATA)
600c907
	@echo "Destructive:     no" >> $(METADATA)
600c907
	@echo "Environment:     AVC_ERROR=+no_avc_check" >> $(METADATA)
600c907
	@echo "Releases:        -RHEL4" >> $(METADATA)
600c907
	@echo "Architectures:   i386 ia64 ppc ppc64 x86_64" >> $(METADATA)
600c907
	@echo "Bug:             624405" >> $(METADATA) # RHEL-6
600c907
	@echo "Bug:             752453" >> $(METADATA) # RHEL-6
600c907
	@echo "Bug:             1605641" >> $(METADATA) # RHEL-7
600c907
	@echo "Bug:             1802423" >> $(METADATA) # Fedora 32
600c907
	@echo "Bug:             1805719" >> $(METADATA) # Fedora 32
600c907
	@echo "Bug:             1806129" >> $(METADATA) # Fedora 32
600c907
	@echo "Bug:             1816787" >> $(METADATA) # Fedora 32
600c907
	@echo "Bug:             1818759" >> $(METADATA) # Fedora 32
600c907
	@echo "Bug:             1825182" >> $(METADATA) # Fedora 32
600c907
	@echo "Bug:             1825188" >> $(METADATA) # Fedora 32
600c907
600c907
	rhts-lint $(METADATA)
600c907