e0e2de7
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
e0e2de7
#
a061c1d
#   Makefile of /CoreOS/patch/Sanity/upstream-test-suite
a061c1d
#   Description: tests upstream test suite
e0e2de7
#   Author: Miroslav Vadkerti <mvadkert@redhat.com>
a061c1d
#   Author: Than Ngo <than@redhat.com>
e0e2de7
#
e0e2de7
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
e0e2de7
#
a061c1d
#   Copyright (c) 2019 Red Hat, Inc. All rights reserved.
e0e2de7
#
e0e2de7
#   This copyrighted material is made available to anyone wishing
e0e2de7
#   to use, modify, copy, or redistribute it subject to the terms
e0e2de7
#   and conditions of the GNU General Public License version 2.
e0e2de7
#
e0e2de7
#   This program is distributed in the hope that it will be
e0e2de7
#   useful, but WITHOUT ANY WARRANTY; without even the implied
e0e2de7
#   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
e0e2de7
#   PURPOSE. See the GNU General Public License for more details.
e0e2de7
#
e0e2de7
#   You should have received a copy of the GNU General Public
e0e2de7
#   License along with this program; if not, write to the Free
e0e2de7
#   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
e0e2de7
#   Boston, MA 02110-1301, USA.
e0e2de7
#
e0e2de7
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
e0e2de7
a061c1d
export TEST=/CoreOS/patch/Sanity/upstream-test-suite
e0e2de7
export TESTVERSION=1.0
e0e2de7
e0e2de7
BUILT_FILES=
e0e2de7
e0e2de7
FILES=$(METADATA) runtest.sh Makefile PURPOSE
e0e2de7
e0e2de7
.PHONY: all install download clean
e0e2de7
e0e2de7
run: $(FILES) build
e0e2de7
	./runtest.sh
e0e2de7
e0e2de7
build: $(BUILT_FILES)
e0e2de7
	chmod a+x runtest.sh
e0e2de7
e0e2de7
clean:
e0e2de7
	rm -f *~ $(BUILT_FILES)
e0e2de7
e0e2de7
e0e2de7
include /usr/share/rhts/lib/rhts-make.include
e0e2de7
e0e2de7
$(METADATA): Makefile
e0e2de7
	@echo "Owner:           Miroslav Vadkerti <mvadkert@redhat.com>" > $(METADATA)
e0e2de7
	@echo "Name:            $(TEST)" >> $(METADATA)
e0e2de7
	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)
e0e2de7
	@echo "Path:            $(TEST_DIR)" >> $(METADATA)
e0e2de7
	@echo "Description:     Executes upstream test suite" >> $(METADATA)
e0e2de7
	@echo "Type:            Sanity" >> $(METADATA)
e0e2de7
	@echo "TestTime:        30m" >> $(METADATA)
e0e2de7
	@echo "RunFor:          patch" >> $(METADATA)
e0e2de7
	@echo "Requires:        patch gcc rpm-build automake libselinux-devel ed libattr-devel" >> $(METADATA)
e0e2de7
	@echo "Priority:        Normal" >> $(METADATA)
e0e2de7
	@echo "License:         GPLv2" >> $(METADATA)
e0e2de7
	@echo "Confidential:    no" >> $(METADATA)
e0e2de7
	@echo "Destructive:     no" >> $(METADATA)
a061c1d
	@echo "Releases:        -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA)
e0e2de7
e0e2de7
	rhts-lint $(METADATA)