aba7ab1
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
aba7ab1
#
aba7ab1
#   Makefile of /CoreOS/libselinux/Sanity/selabel-functions
aba7ab1
#   Description: Test selabel functions
aba7ab1
#   Author: Jan Zarsky <jzarsky@redhat.com>
aba7ab1
#
aba7ab1
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
aba7ab1
#
aba7ab1
#   Copyright (c) 2016 Red Hat, Inc.
aba7ab1
#
aba7ab1
#   This program is free software: you can redistribute it and/or
aba7ab1
#   modify it under the terms of the GNU General Public License as
aba7ab1
#   published by the Free Software Foundation, either version 2 of
aba7ab1
#   the License, or (at your option) any later version.
aba7ab1
#
aba7ab1
#   This program is distributed in the hope that it will be
aba7ab1
#   useful, but WITHOUT ANY WARRANTY; without even the implied
aba7ab1
#   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
aba7ab1
#   PURPOSE.  See the GNU General Public License for more details.
aba7ab1
#
aba7ab1
#   You should have received a copy of the GNU General Public License
aba7ab1
#   along with this program. If not, see http://www.gnu.org/licenses/.
aba7ab1
#
aba7ab1
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
aba7ab1
aba7ab1
export TEST=/CoreOS/libselinux/Sanity/selabel-functions
aba7ab1
export TESTVERSION=1.0
aba7ab1
aba7ab1
BUILT_FILES=
aba7ab1
aba7ab1
FILES=$(METADATA) runtest.sh Makefile PURPOSE test_*.c
aba7ab1
aba7ab1
.PHONY: all install download clean
aba7ab1
aba7ab1
run: $(FILES) build
aba7ab1
	./runtest.sh
aba7ab1
aba7ab1
build: $(BUILT_FILES)
aba7ab1
	test -x runtest.sh || chmod a+x runtest.sh
aba7ab1
aba7ab1
clean:
aba7ab1
	rm -f *~ $(BUILT_FILES)
aba7ab1
aba7ab1
aba7ab1
include /usr/share/rhts/lib/rhts-make.include
aba7ab1
aba7ab1
$(METADATA): Makefile
aba7ab1
	@echo "Owner:           Jan Zarsky <jzarsky@redhat.com>" > $(METADATA)
aba7ab1
	@echo "Name:            $(TEST)" >> $(METADATA)
aba7ab1
	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)
aba7ab1
	@echo "Path:            $(TEST_DIR)" >> $(METADATA)
aba7ab1
	@echo "Description:     Test selabel functions" >> $(METADATA)
aba7ab1
	@echo "Type:            Sanity" >> $(METADATA)
aba7ab1
	@echo "TestTime:        5m" >> $(METADATA)
aba7ab1
	@echo "RunFor:          libselinux" >> $(METADATA)
aba7ab1
	@echo "Requires:        libselinux libselinux-devel glibc gcc" >> $(METADATA)
aba7ab1
	@echo "Priority:        Normal" >> $(METADATA)
aba7ab1
	@echo "License:         GPLv2+" >> $(METADATA)
aba7ab1
	@echo "Confidential:    no" >> $(METADATA)
aba7ab1
	@echo "Destructive:     no" >> $(METADATA)
aba7ab1
	@echo "Releases:        -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA)
aba7ab1
aba7ab1
	rhts-lint $(METADATA)