5972c3
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5972c3
#
5972c3
#   Makefile of /CoreOS/util-linux/various
5972c3
#   Description: This test groups small sanity and regression tests for util-linux
5972c3
#   Author: Miroslav Vadkerti <mvadkert@redhat.com>
5972c3
#
5972c3
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5972c3
#
5972c3
#   Copyright (c) 2013 Red Hat, Inc. All rights reserved.
5972c3
#
5972c3
#   This copyrighted material is made available to anyone wishing
5972c3
#   to use, modify, copy, or redistribute it subject to the terms
5972c3
#   and conditions of the GNU General Public License version 2.
5972c3
#
5972c3
#   This program is distributed in the hope that it will be
5972c3
#   useful, but WITHOUT ANY WARRANTY; without even the implied
5972c3
#   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
5972c3
#   PURPOSE. See the GNU General Public License for more details.
5972c3
#
5972c3
#   You should have received a copy of the GNU General Public
5972c3
#   License along with this program; if not, write to the Free
5972c3
#   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
5972c3
#   Boston, MA 02110-1301, USA.
5972c3
#
5972c3
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5972c3
5972c3
export TEST=/CoreOS/util-linux/Sanity/various
5972c3
export TESTVERSION=1.0
5972c3
5972c3
BUILT_FILES=
5972c3
5972c3
FILES=$(METADATA) runtest.sh Makefile PURPOSE
5972c3
5972c3
.PHONY: all install download clean
5972c3
5972c3
run: $(FILES) build
5972c3
	./runtest.sh
5972c3
5972c3
build: $(BUILT_FILES)
5972c3
	test -x runtest.sh || chmod a+x runtest.sh
5972c3
5972c3
clean:
5972c3
	rm -f *~ $(BUILT_FILES)
5972c3
5972c3
5972c3
include /usr/share/rhts/lib/rhts-make.include
5972c3
5972c3
$(METADATA): Makefile
5972c3
	@echo "Owner:           Miroslav Vadkerti <mvadkert@redhat.com>" > $(METADATA)
5972c3
	@echo "Name:            $(TEST)" >> $(METADATA)
5972c3
	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)
5972c3
	@echo "Path:            $(TEST_DIR)" >> $(METADATA)
5972c3
	@echo "Description:     This test groups small sanity and regression tests for util-linux" >> $(METADATA)
5972c3
	@echo "Type:            Sanity" >> $(METADATA)
5972c3
	@echo "TestTime:        10m" >> $(METADATA)
5972c3
	@echo "RunFor:          util-linux" >> $(METADATA)
5972c3
	@echo "Requires:        util-linux util-linux-user" >> $(METADATA)
5972c3
	@echo "Priority:        Normal" >> $(METADATA)
5972c3
	@echo "License:         GPLv2" >> $(METADATA)
5972c3
	@echo "Confidential:    no" >> $(METADATA)
5972c3
	@echo "Destructive:     no" >> $(METADATA)
5972c3
	@echo "Releases:        -RHEL3 -RHEL4 -RHEL5Server -RHEL5Client -RHEL6" >> $(METADATA)
5972c3
5972c3
	rhts-lint $(METADATA)