582a0c8
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
582a0c8
#
582a0c8
#   Makefile of /tools/dwz/dwz-quick-test
582a0c8
#   Description: Quick sanity test
582a0c8
#   Author: Miroslav Franc <mfranc@redhat.com>
582a0c8
#
582a0c8
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
582a0c8
#
582a0c8
#   Copyright (c) 2013 Red Hat, Inc. All rights reserved.
582a0c8
#
582a0c8
#   This copyrighted material is made available to anyone wishing
582a0c8
#   to use, modify, copy, or redistribute it subject to the terms
582a0c8
#   and conditions of the GNU General Public License version 2.
582a0c8
#
582a0c8
#   This program is distributed in the hope that it will be
582a0c8
#   useful, but WITHOUT ANY WARRANTY; without even the implied
582a0c8
#   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
582a0c8
#   PURPOSE. See the GNU General Public License for more details.
582a0c8
#
582a0c8
#   You should have received a copy of the GNU General Public
582a0c8
#   License along with this program; if not, write to the Free
582a0c8
#   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
582a0c8
#   Boston, MA 02110-1301, USA.
582a0c8
#
582a0c8
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
582a0c8
582a0c8
export TEST=/tools/dwz/dwz-quick-test
582a0c8
export TESTVERSION=1.0
582a0c8
582a0c8
BUILT_FILES=
582a0c8
582a0c8
FILES=$(METADATA) runtest.sh Makefile PURPOSE something.c cmd.txt
582a0c8
582a0c8
.PHONY: all install download clean
582a0c8
582a0c8
run: $(FILES) build
582a0c8
	./runtest.sh
582a0c8
582a0c8
build: $(BUILT_FILES)
582a0c8
	test -x runtest.sh || chmod a+x runtest.sh
582a0c8
582a0c8
clean:
582a0c8
	rm -f *~ $(BUILT_FILES)
582a0c8
582a0c8
582a0c8
include /usr/share/rhts/lib/rhts-make.include
582a0c8
582a0c8
$(METADATA): Makefile
582a0c8
	@echo "Owner:           Miroslav Franc <mfranc@redhat.com>" > $(METADATA)
582a0c8
	@echo "Name:            $(TEST)" >> $(METADATA)
582a0c8
	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)
582a0c8
	@echo "Path:            $(TEST_DIR)" >> $(METADATA)
582a0c8
	@echo "Description:     Quick sanity test" >> $(METADATA)
582a0c8
	@echo "Type:            Sanity" >> $(METADATA)
582a0c8
	@echo "TestTime:        2m" >> $(METADATA)
582a0c8
	@echo "RunFor:          dwz" >> $(METADATA)
582a0c8
	@echo "Requires:        dwz gcc gdb glibc-debuginfo" >> $(METADATA)
582a0c8
	@echo "Priority:        Normal" >> $(METADATA)
582a0c8
	@echo "License:         GPLv2" >> $(METADATA)
582a0c8
	@echo "Confidential:    no" >> $(METADATA)
582a0c8
	@echo "Destructive:     no" >> $(METADATA)
582a0c8
582a0c8
	rhts-lint $(METADATA)