# 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 " >> $(METADATA) @echo "License: Red Hat internal" >> $(METADATA) # You may need other fields here; see the documentation