| 1 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 2 |
# |
| 3 |
# Makefile of /kernel/hwdata/idfiles/syntax |
| 4 |
# Description: checks for basic syntax errors |
| 5 |
# Author: Milos Malik <[email protected]> |
| 6 |
# |
| 7 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 8 |
# |
| 9 |
# Copyright (c) 2009 Red Hat, Inc. All rights reserved. |
| 10 |
# |
| 11 |
# This copyrighted material is made available to anyone wishing |
| 12 |
# to use, modify, copy, or redistribute it subject to the terms |
| 13 |
# and conditions of the GNU General Public License version 2. |
| 14 |
# |
| 15 |
# This program is distributed in the hope that it will be |
| 16 |
# useful, but WITHOUT ANY WARRANTY; without even the implied |
| 17 |
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR |
| 18 |
# PURPOSE. See the GNU General Public License for more details. |
| 19 |
# |
| 20 |
# You should have received a copy of the GNU General Public |
| 21 |
# License along with this program; if not, write to the Free |
| 22 |
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 23 |
# Boston, MA 02110-1301, USA. |
| 24 |
# |
| 25 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 26 |
|
| 27 |
export TEST=/kernel/hwdata/idfiles/syntax |
| 28 |
export TESTVERSION=1.0 |
| 29 |
|
| 30 |
BUILT_FILES= |
| 31 |
|
| 32 |
FILES=$(METADATA) runtest.sh Makefile PURPOSE |
| 33 |
|
| 34 |
.PHONY: all install download clean |
| 35 |
|
| 36 |
run: $(FILES) build |
| 37 |
./runtest.sh |
| 38 |
|
| 39 |
build: $(BUILT_FILES) |
| 40 |
chmod a+x runtest.sh |
| 41 |
|
| 42 |
clean: |
| 43 |
rm -f *~ $(BUILT_FILES) |
| 44 |
|
| 45 |
include /usr/share/rhts/lib/rhts-make.include |
| 46 |
|
| 47 |
$(METADATA): Makefile |
| 48 |
@echo "Owner: Milos Malik <[email protected]>" > $(METADATA) |
| 49 |
@echo "Name: $(TEST)" >> $(METADATA) |
| 50 |
@echo "TestVersion: $(TESTVERSION)" >> $(METADATA) |
| 51 |
@echo "Path: $(TEST_DIR)" >> $(METADATA) |
| 52 |
@echo "Description: checks for basic syntax errors" >> $(METADATA) |
| 53 |
@echo "Type: Sanity" >> $(METADATA) |
| 54 |
@echo "TestTime: 5m" >> $(METADATA) |
| 55 |
@echo "RunFor: hwdata" >> $(METADATA) |
| 56 |
@echo "Requires: hwdata" >> $(METADATA) |
| 57 |
@echo "Requires: pciutils" >> $(METADATA) |
| 58 |
@echo "Requires: usbutils" >> $(METADATA) |
| 59 |
@echo "Requires: grep" >> $(METADATA) |
| 60 |
@echo "Requires: mktemp" >> $(METADATA) |
| 61 |
@echo "Priority: Normal" >> $(METADATA) |
| 62 |
@echo "License: GPLv2" >> $(METADATA) |
| 63 |
@echo "Confidential: no" >> $(METADATA) |
| 64 |
@echo "Destructive: no" >> $(METADATA) |
| 65 |
@echo "Architectures: i386 x86_64 ia64" >> $(METADATA) |
| 66 |
|
| 67 |
rhts-lint $(METADATA) |
| 68 |
|