651216e
# Copyright (c) 2006 Red Hat, Inc. All rights reserved. This copyrighted material
651216e
# is made available to anyone wishing to use, modify, copy, or
651216e
# redistribute it subject to the terms and conditions of the GNU General
651216e
# Public License v.2.
651216e
#
651216e
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
651216e
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
651216e
# PARTICULAR PURPOSE. See the GNU General Public License for more details.
651216e
#
651216e
# You should have received a copy of the GNU General Public License
651216e
# along with this program; If not, see http://www.gnu.org/licenses/.
651216e
#
651216e
# Author: Bruno Goncalves <bgoncalv@redhat.com>
651216e
651216e
# The toplevel namespace within which the test lives.
651216e
TOPLEVEL_NAMESPACE=kernel
651216e
651216e
# The name of the package under test:
651216e
PACKAGE_NAME=storage
651216e
651216e
# The path of the test below the package:
651216e
RELATIVE_PATH=lvm/device-mapper-persistent-data/tools_not_linked_usr
651216e
651216e
# Version of the Test. Used with make tag.
651216e
export TESTVERSION=1.0
651216e
651216e
# The combined namespace of the test.
651216e
export TEST=/$(TOPLEVEL_NAMESPACE)/$(PACKAGE_NAME)/$(RELATIVE_PATH)
651216e
651216e
651216e
# A phony target is one that is not really the name of a file.
651216e
# It is just a name for some commands to be executed when you
651216e
# make an explicit request. There are two reasons to use a
651216e
# phony target: to avoid a conflict with a file of the same
651216e
# name, and to improve performance.
651216e
.PHONY: all install download clean
651216e
651216e
# executables to be built should be added here, they will be generated on the system under test.
651216e
BUILT_FILES=
651216e
651216e
# data files, .c files, scripts anything needed to either compile the test and/or run it.
651216e
FILES=$(METADATA) runtest.sh PURPOSE tools_not_linked_usr.py
651216e
651216e
run: $(FILES) build
651216e
	./runtest.sh
651216e
651216e
build: $(BUILT_FILES)
651216e
	chmod a+x ./runtest.sh
651216e
	chmod a+x ./tools_not_linked_usr.py
651216e
651216e
clean:
651216e
	rm -f *~ *.rpm $(BUILT_FILES)
651216e
651216e
# You may need to add other targets e.g. to build executables from source code
651216e
# Add them here:
651216e
651216e
651216e
# Include Common Makefile
651216e
include /usr/share/rhts/lib/rhts-make.include
651216e
651216e
# Generate the testinfo.desc here:
651216e
$(METADATA): Makefile
651216e
	@touch $(METADATA)
651216e
# Change to the test owner's name
651216e
	@echo "Owner:        Bruno Goncalves <bgoncalv@redhat.com>" > $(METADATA)
651216e
	@echo "Name:         $(TEST)" >> $(METADATA)
651216e
	@echo "Path:         $(TEST_DIR)"	>> $(METADATA)
651216e
	@echo "License:      GPL" >> $(METADATA)
651216e
	@echo "TestVersion:  $(TESTVERSION)"	>> $(METADATA)
651216e
	@echo "Description:  Make sure tools are not linked to lib under /usr.">> $(METADATA)
651216e
	@echo "TestTime:     1h" >> $(METADATA)
651216e
	@echo "RunFor:       $(PACKAGE_NAME)" >> $(METADATA)
651216e
	@echo "Requires:     $(PACKAGE_NAME)" >> $(METADATA)
651216e
651216e
	rhts-lint $(METADATA)