rasibley / rpms / hwdata

Forked from rpms/hwdata a year ago
Clone
5729a0
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5729a0
#
5729a0
#   Makefile of /kernel/hwdata/Sanity/ids-files
5729a0
#   Description: compares upstream ID files with our ID files
5729a0
#   Author: Milos Malik <mmalik@redhat.com>
5729a0
#
5729a0
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5729a0
#
5729a0
#   Copyright (c) 2009 Red Hat, Inc. All rights reserved.
5729a0
#
5729a0
#   This copyrighted material is made available to anyone wishing
5729a0
#   to use, modify, copy, or redistribute it subject to the terms
5729a0
#   and conditions of the GNU General Public License version 2.
5729a0
#
5729a0
#   This program is distributed in the hope that it will be
5729a0
#   useful, but WITHOUT ANY WARRANTY; without even the implied
5729a0
#   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
5729a0
#   PURPOSE. See the GNU General Public License for more details.
5729a0
#
5729a0
#   You should have received a copy of the GNU General Public
5729a0
#   License along with this program; if not, write to the Free
5729a0
#   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
5729a0
#   Boston, MA 02110-1301, USA.
5729a0
#
5729a0
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5729a0
5729a0
export TEST=/kernel/hwdata/Sanity/ids-files
5729a0
export TESTVERSION=1.0
5729a0
5729a0
BUILT_FILES=
5729a0
5729a0
FILES=$(METADATA) runtest.sh Makefile PURPOSE
5729a0
5729a0
.PHONY: all install download clean
5729a0
5729a0
run: $(FILES) build
5729a0
	./runtest.sh
5729a0
5729a0
build: $(BUILT_FILES)
5729a0
	chmod a+x runtest.sh
5729a0
	chcon -t bin_t runtest.sh
5729a0
5729a0
clean:
5729a0
	rm -f *~ $(BUILT_FILES)
5729a0
5729a0
include /usr/share/rhts/lib/rhts-make.include
5729a0
5729a0
$(METADATA): Makefile
5729a0
	@echo "Owner:           Milos Malik <mmalik@redhat.com>" > $(METADATA)
5729a0
	@echo "Name:            $(TEST)" >> $(METADATA)
5729a0
	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)
5729a0
	@echo "Path:            $(TEST_DIR)" >> $(METADATA)
5729a0
	@echo "Description:     compares upstream ID files with our ID files" >> $(METADATA)
5729a0
	@echo "Type:            Sanity" >> $(METADATA)
5729a0
	@echo "TestTime:        5m" >> $(METADATA)
5729a0
	@echo "RunFor:          hwdata" >> $(METADATA)
5729a0
	@echo "Requires:        hwdata" >> $(METADATA)
5729a0
	@echo "Requires:        wget" >> $(METADATA)
5729a0
	@echo "Priority:        Normal" >> $(METADATA)
5729a0
	@echo "License:         GPLv2" >> $(METADATA)
5729a0
	@echo "Confidential:    no" >> $(METADATA)
5729a0
	@echo "Destructive:     no" >> $(METADATA)
5729a0
5729a0
	rhts-lint $(METADATA)
5729a0