Debian Codegraph @

tests/ids-files/Makefile

raw
1 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 #
3 # Makefile of /kernel/hwdata/Sanity/ids-files
4 # Description: compares upstream ID files with our ID files
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/Sanity/ids-files
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 chcon -t bin_t runtest.sh
42
43 clean:
44 rm -f *~ $(BUILT_FILES)
45
46 include /usr/share/rhts/lib/rhts-make.include
47
48 $(METADATA): Makefile
49 @echo "Owner: Milos Malik <[email protected]>" > $(METADATA)
50 @echo "Name: $(TEST)" >> $(METADATA)
51 @echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
52 @echo "Path: $(TEST_DIR)" >> $(METADATA)
53 @echo "Description: compares upstream ID files with our ID files" >> $(METADATA)
54 @echo "Type: Sanity" >> $(METADATA)
55 @echo "TestTime: 5m" >> $(METADATA)
56 @echo "RunFor: hwdata" >> $(METADATA)
57 @echo "Requires: hwdata" >> $(METADATA)
58 @echo "Requires: wget" >> $(METADATA)
59 @echo "Priority: Normal" >> $(METADATA)
60 @echo "License: GPLv2" >> $(METADATA)
61 @echo "Confidential: no" >> $(METADATA)
62 @echo "Destructive: no" >> $(METADATA)
63
64 rhts-lint $(METADATA)
65