Blame tests/does-Image-Magick-works-under-valgrind/Makefile

Alexandra Hájková f2c4fd
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Alexandra Hájková f2c4fd
#
Alexandra Hájková f2c4fd
#   Makefile of /tools/valgrind/Sanity/does-Image-Magick-works-under-valgrind
Alexandra Hájková f2c4fd
#   Description: Testing sanity of valgrind by comparing outputs of ImageMagick utilities with/without valgrind.
Alexandra Hájková f2c4fd
#   Author: Miroslav Franc <mfranc@redhat.com>
Alexandra Hájková f2c4fd
#
Alexandra Hájková f2c4fd
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Alexandra Hájková f2c4fd
#
Alexandra Hájková f2c4fd
#   Copyright (c) 2011 Red Hat, Inc. All rights reserved.
Alexandra Hájková f2c4fd
#
Alexandra Hájková f2c4fd
#   This copyrighted material is made available to anyone wishing
Alexandra Hájková f2c4fd
#   to use, modify, copy, or redistribute it subject to the terms
Alexandra Hájková f2c4fd
#   and conditions of the GNU General Public License version 2 or later.
Alexandra Hájková f2c4fd
#
Alexandra Hájková f2c4fd
#   This program is distributed in the hope that it will be
Alexandra Hájková f2c4fd
#   useful, but WITHOUT ANY WARRANTY; without even the implied
Alexandra Hájková f2c4fd
#   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
Alexandra Hájková f2c4fd
#   PURPOSE. See the GNU General Public License for more details.
Alexandra Hájková f2c4fd
#
Alexandra Hájková f2c4fd
#   You should have received a copy of the GNU General Public
Alexandra Hájková f2c4fd
#   License along with this program; if not, write to the Free
Alexandra Hájková f2c4fd
#   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Alexandra Hájková f2c4fd
#   Boston, MA 02110-1301, USA.
Alexandra Hájková f2c4fd
#
Alexandra Hájková f2c4fd
#   The image munich.jpg used in this test is from:
Alexandra Hájková f2c4fd
#   https://en.wikipedia.org/wiki/File:Frauenkirche_and_Neues_Rathaus_Munich_March_2013.JPG.
Alexandra Hájková f2c4fd
#   munich.jpg file is distributed under the Creative Commons
Alexandra Hájková f2c4fd
#   Attribution-Share Alike 3.0 Unported license
Alexandra Hájková f2c4fd
#
Alexandra Hájková f2c4fd
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Alexandra Hájková f2c4fd
Alexandra Hájková f2c4fd
export TEST=/tools/valgrind/Sanity/does-Image-Magick-works-under-valgrind
Alexandra Hájková f2c4fd
export TESTVERSION=1.0
Alexandra Hájková f2c4fd
Alexandra Hájková f2c4fd
BUILT_FILES=
Alexandra Hájková f2c4fd
Alexandra Hájková f2c4fd
FILES=$(METADATA) runtest.sh Makefile PURPOSE munich.jpg
Alexandra Hájková f2c4fd
Alexandra Hájková f2c4fd
.PHONY: all install download clean
Alexandra Hájková f2c4fd
Alexandra Hájková f2c4fd
run: $(FILES) build
Alexandra Hájková f2c4fd
	./runtest.sh
Alexandra Hájková f2c4fd
Alexandra Hájková f2c4fd
build: $(BUILT_FILES)
Alexandra Hájková f2c4fd
	chmod a+x runtest.sh
Alexandra Hájková f2c4fd
Alexandra Hájková f2c4fd
clean:
Alexandra Hájková f2c4fd
	rm -f *~ $(BUILT_FILES)
Alexandra Hájková f2c4fd
Alexandra Hájková f2c4fd
Alexandra Hájková f2c4fd
include /usr/share/rhts/lib/rhts-make.include
Alexandra Hájková f2c4fd
Alexandra Hájková f2c4fd
$(METADATA): Makefile
Alexandra Hájková f2c4fd
	@echo "Owner:           Miroslav Franc <mfranc@redhat.com>" > $(METADATA)
Alexandra Hájková f2c4fd
	@echo "Name:            $(TEST)" >> $(METADATA)
Alexandra Hájková f2c4fd
	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)
Alexandra Hájková f2c4fd
	@echo "Path:            $(TEST_DIR)" >> $(METADATA)
Alexandra Hájková f2c4fd
	@echo "Description:     Testing sanity of valgrind by comparing outputs of ImageMagick utilities with/without valgrind." >> $(METADATA)
Alexandra Hájková f2c4fd
	@echo "Type:            Sanity" >> $(METADATA)
Alexandra Hájková f2c4fd
	@echo "TestTime:        3h" >> $(METADATA)
Alexandra Hájková f2c4fd
	@echo "RunFor:          valgrind" >> $(METADATA)
Alexandra Hájková f2c4fd
	@echo "Requires:        valgrind ImageMagick" >> $(METADATA)
Alexandra Hájková f2c4fd
	@echo "Priority:        Normal" >> $(METADATA)
Alexandra Hájková f2c4fd
	@echo "License:         GPLv2" >> $(METADATA)
Alexandra Hájková f2c4fd
	@echo "Confidential:    no" >> $(METADATA)
Alexandra Hájková f2c4fd
	@echo "Destructive:     no" >> $(METADATA)
Alexandra Hájková f2c4fd
	@echo "Releases:        RHEL6 RHEL7" >> $(METADATA)
Alexandra Hájková f2c4fd
Alexandra Hájková f2c4fd
	rhts-lint $(METADATA)