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