Mike Gahagan ec75bf
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Mike Gahagan ec75bf
#
Mike Gahagan ec75bf
#   Makefile of /CoreOS/attr/Sanity/getfattr-ignores-NULs-in-output-when-using-text
Mike Gahagan ec75bf
#   Description: Test for getfattr ignores NULs in output when using "text"
Mike Gahagan ec75bf
#   Author: Jan Scotka <jscotka@redhat.com>
Mike Gahagan ec75bf
#
Mike Gahagan ec75bf
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Mike Gahagan ec75bf
#
Mike Gahagan ec75bf
#   Copyright (c) 2011 Red Hat, Inc. All rights reserved.
Mike Gahagan ec75bf
#
Mike Gahagan ec75bf
#   This copyrighted material is made available to anyone wishing
Mike Gahagan ec75bf
#   to use, modify, copy, or redistribute it subject to the terms
Mike Gahagan ec75bf
#   and conditions of the GNU General Public License version 2.
Mike Gahagan ec75bf
#
Mike Gahagan ec75bf
#   This program is distributed in the hope that it will be
Mike Gahagan ec75bf
#   useful, but WITHOUT ANY WARRANTY; without even the implied
Mike Gahagan ec75bf
#   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
Mike Gahagan ec75bf
#   PURPOSE. See the GNU General Public License for more details.
Mike Gahagan ec75bf
#
Mike Gahagan ec75bf
#   You should have received a copy of the GNU General Public
Mike Gahagan ec75bf
#   License along with this program; if not, write to the Free
Mike Gahagan ec75bf
#   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Mike Gahagan ec75bf
#   Boston, MA 02110-1301, USA.
Mike Gahagan ec75bf
#
Mike Gahagan ec75bf
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Mike Gahagan ec75bf
Mike Gahagan ec75bf
export TEST=/CoreOS/attr/Sanity/getfattr-ignores-NULs-in-output-when-using-text
Mike Gahagan ec75bf
export TESTVERSION=1.0
Mike Gahagan ec75bf
Mike Gahagan ec75bf
BUILT_FILES=
Mike Gahagan ec75bf
Mike Gahagan ec75bf
FILES=$(METADATA) runtest.sh Makefile PURPOSE
Mike Gahagan ec75bf
Mike Gahagan ec75bf
.PHONY: all install download clean
Mike Gahagan ec75bf
Mike Gahagan ec75bf
run: $(FILES) build
Mike Gahagan ec75bf
	./runtest.sh
Mike Gahagan ec75bf
Mike Gahagan ec75bf
build: $(BUILT_FILES)
Mike Gahagan ec75bf
	chmod a+x runtest.sh
Mike Gahagan ec75bf
Mike Gahagan ec75bf
clean:
Mike Gahagan ec75bf
	rm -f *~ $(BUILT_FILES)
Mike Gahagan ec75bf
Mike Gahagan ec75bf
Mike Gahagan ec75bf
include /usr/share/rhts/lib/rhts-make.include
Mike Gahagan ec75bf
Mike Gahagan ec75bf
$(METADATA): Makefile
Mike Gahagan ec75bf
	@echo "Owner:           Jan Scotka <jscotka@redhat.com>" > $(METADATA)
Mike Gahagan ec75bf
	@echo "Name:            $(TEST)" >> $(METADATA)
Mike Gahagan ec75bf
	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)
Mike Gahagan ec75bf
	@echo "Path:            $(TEST_DIR)" >> $(METADATA)
Mike Gahagan ec75bf
	@echo "Description:     Test for getfattr ignores NULs in output when using \"text\" >> $(METADATA)
Mike Gahagan ec75bf
	@echo "Type:            Sanity" >> $(METADATA)
Mike Gahagan ec75bf
	@echo "TestTime:        5m" >> $(METADATA)
Mike Gahagan ec75bf
	@echo "RunFor:          attr" >> $(METADATA)
Mike Gahagan ec75bf
	@echo "Requires:        attr" >> $(METADATA)
Mike Gahagan ec75bf
	@echo "Priority:        Normal" >> $(METADATA)
Mike Gahagan ec75bf
	@echo "License:         GPLv2" >> $(METADATA)
Mike Gahagan ec75bf
	@echo "Confidential:    no" >> $(METADATA)
Mike Gahagan ec75bf
	@echo "Destructive:     no" >> $(METADATA)
Mike Gahagan ec75bf
Mike Gahagan ec75bf
	rhts-lint $(METADATA)