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