From d595e27c8c257b383ec13388f4d47ce06657fd32 Mon Sep 17 00:00:00 2001 From: Bill Peck Date: Tue, 9 Apr 2013 11:26:36 -0400 Subject: use rpm arch instead of uname -m --- kernel/kernelinstall/Makefile | 52 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 kernel/kernelinstall/Makefile (limited to 'kernel/kernelinstall/Makefile') diff --git a/kernel/kernelinstall/Makefile b/kernel/kernelinstall/Makefile new file mode 100644 index 0000000..b29a209 --- /dev/null +++ b/kernel/kernelinstall/Makefile @@ -0,0 +1,52 @@ +# The toplevel namespace within which the test lives. +TOPLEVEL_NAMESPACE=/distribution + +# The name of the package under test: +PACKAGE_NAME=kernel + +# The path of the test below the package: +RELATIVE_PATH=$(PACKAGE_NAME)install + +# The test version: +export TESTVERSION=1.1 + +# The test namespace as it will appear: +export TEST=$(TOPLEVEL_NAMESPACE)/$(RELATIVE_PATH) + +# Built executables should be added here: +BUILT_FILES=$(METADATA) + +# the list of files that will be added to the test rpm: +FILES=$(BUILT_FILES) runtest.sh Makefile + +TEST_DIR=/mnt/tests$(TEST) + +build: $(BUILT_FILES) + +clean: + rm -rf ./mnt + rm -f *~ $(BUILT_FILES) + rm -f *distribution-kernelinstall*.noarch.rpm + +run: build + chmod a+x ./runtest.sh + ./runtest.sh + +# Include global Makefile targets +include /usr/share/rhts/lib/rhts-make.include + +# Generate the testinfo.desc here: +$(METADATA): + @touch $(METADATA) + @echo "Owner: Jeff Burke " > $(METADATA) + @echo "Name: $(TEST)" >> $(METADATA) + @echo "Path: $(TEST_DIR)" >> $(METADATA) + @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) + @echo "Description: Reports back on the Kernel \ + installation that was done" >> $(METADATA) + @echo "TestTime: 120m" >> $(METADATA) + @echo "Priority: Manual" >> $(METADATA) + @echo "Requires: iproute ethtool" >> $(METADATA) + @echo "RunFor: kernel" >> $(METADATA) + @echo "RunFor: kernel-headers" >> $(METADATA) + @echo "License: GPL" >> $(METADATA) -- cgit