summaryrefslogtreecommitdiffstats
path: root/kernel/misc/gdb-simple/Makefile
blob: 32093b495dbab15ee810744cbc15c39c237534a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Example Makefile for RHTS
# This example is geared towards a test for a specific package
# It does most of the work for you, but may require further coding

# The toplevel namespace within which the test lives.
# Kernel is odd in that it is its own top level.  Probably wasn't
# the smartest idea.
TOPLEVEL_NAMESPACE=

# The name of the package under test:
# FIXME: you wil need to change this:
PACKAGE_NAME=kernel

# The path of the test below the package:
# FIXME: you wil need to change this:
RELATIVE_PATH=misc/gdb-simple

# Version of the Test. Used with make tag.
export TESTVERSION=1.2

# The compiled namespace of the test.
export TEST=$(TOPLEVEL_NAMESPACE)/$(PACKAGE_NAME)/$(RELATIVE_PATH)

.PHONY: all install download clean

BUILT_FILES= # executables to be built should be added here, they will be generated on the system under test.
FILES=$(METADATA) Makefile runtest.sh gdb-commands

run: $(FILES) build
		./runtest.sh

build: $(BUILT_FILES)
		chmod a+x ./runtest.sh

clean:
		rm -f *~ $(BUILT_FILES)
		rm -rf test/

# You may need to add other taregts e.g. to build executables from source code
# Add them here:

# Include Common Makefile
include /usr/share/rhts/lib/rhts-make.include

# Generate the testinfo.desc here:
$(METADATA): Makefile
		@touch $(METADATA)
		@echo "Name:         $(TEST)" >> $(METADATA)
		@echo "Path:         $(TEST_DIR)"       >> $(METADATA)
		@echo "TestVersion:  $(TESTVERSION)"    >> $(METADATA)
		@echo "Description:  Simple kernel + gdb sanity check" >> $(METADATA)
		@echo "TestTime:     5m" >> $(METADATA)
		@echo "Releases:     -RHEL2.1" >> $(METADATA)
#		@echo "Architectures: ia64" >> $(METADATA)
		@echo "Destructive:  no" >> $(METADATA)
		@echo "RunFor:       $(PACKAGE_NAME)" >> $(METADATA)
		@echo "Type:         Regression" >> $(METADATA)
		@echo "Type:         Releasecriterium" >> $(METADATA)
		@echo "Type:         KernelTier1" >> $(METADATA)
		@echo "Requires:     gdb" >> $(METADATA)
		@echo "Requires:     coreutils" >> $(METADATA)
		@echo "Requires:     @development-tools" >> $(METADATA)
		@echo "Owner:        Mike Gahagan <mgahagan@redhat.com>" >> $(METADATA)
		@echo "License:	     Red Hat internal" >> $(METADATA)
# You may need other fields here; see the documentation