vishalmishra434 / rpms / openssh

Forked from rpms/openssh a month ago
Clone
Jakub Jelen 1ce235
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Jakub Jelen 1ce235
#
Jakub Jelen 1ce235
#   Makefile of /CoreOS/openssh/Sanity/pam_ssh_agent_auth
Jakub Jelen 1ce235
#   Description: This is a basic sanity test for pam_ssh_agent_auth
Jakub Jelen 1ce235
#   Author: Jakub Jelen <jjelen@redhat.com>
Jakub Jelen 1ce235
#
Jakub Jelen 1ce235
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Jakub Jelen 1ce235
#
Jakub Jelen 1ce235
#   Copyright (c) 2015 Red Hat, Inc.
Jakub Jelen 1ce235
#
Jakub Jelen 1ce235
#   This program is free software: you can redistribute it and/or
Jakub Jelen 1ce235
#   modify it under the terms of the GNU General Public License as
Jakub Jelen 1ce235
#   published by the Free Software Foundation, either version 2 of
Jakub Jelen 1ce235
#   the License, or (at your option) any later version.
Jakub Jelen 1ce235
#
Jakub Jelen 1ce235
#   This program is distributed in the hope that it will be
Jakub Jelen 1ce235
#   useful, but WITHOUT ANY WARRANTY; without even the implied
Jakub Jelen 1ce235
#   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
Jakub Jelen 1ce235
#   PURPOSE.  See the GNU General Public License for more details.
Jakub Jelen 1ce235
#
Jakub Jelen 1ce235
#   You should have received a copy of the GNU General Public License
Jakub Jelen 1ce235
#   along with this program. If not, see http://www.gnu.org/licenses/.
Jakub Jelen 1ce235
#
Jakub Jelen 1ce235
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Jakub Jelen 1ce235
Jakub Jelen 1ce235
export TEST=/CoreOS/openssh/Sanity/pam_ssh_agent_auth
Jakub Jelen 1ce235
export TESTVERSION=1.0
Jakub Jelen 1ce235
Jakub Jelen 1ce235
BUILT_FILES=
Jakub Jelen 1ce235
Jakub Jelen 1ce235
FILES=$(METADATA) runtest.sh Makefile PURPOSE pam_save_ssh_var.c
Jakub Jelen 1ce235
Jakub Jelen 1ce235
.PHONY: all install download clean
Jakub Jelen 1ce235
Jakub Jelen 1ce235
run: $(FILES) build
Jakub Jelen 1ce235
	./runtest.sh
Jakub Jelen 1ce235
Jakub Jelen 1ce235
build: $(BUILT_FILES)
Jakub Jelen 1ce235
	test -x runtest.sh || chmod a+x runtest.sh
Jakub Jelen 1ce235
Jakub Jelen 1ce235
clean:
Jakub Jelen 1ce235
	rm -f *~ $(BUILT_FILES)
Jakub Jelen 1ce235
Jakub Jelen 1ce235
Jakub Jelen 1ce235
-include /usr/share/rhts/lib/rhts-make.include
Jakub Jelen 1ce235
Jakub Jelen 1ce235
$(METADATA): Makefile
Jakub Jelen 1ce235
	@echo "Owner:           Jakub Jelen <jjelen@redhat.com>" > $(METADATA)
Jakub Jelen 1ce235
	@echo "Name:            $(TEST)" >> $(METADATA)
Jakub Jelen 1ce235
	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)
Jakub Jelen 1ce235
	@echo "Path:            $(TEST_DIR)" >> $(METADATA)
Jakub Jelen 1ce235
	@echo "Description:     This is basic sanity test for pam_ssh_agent_auth" >> $(METADATA)
Jakub Jelen 1ce235
	@echo "Type:            Sanity" >> $(METADATA)
Jakub Jelen 1ce235
	@echo "TestTime:        5m" >> $(METADATA)
Jakub Jelen 1ce235
	@echo "RunFor:          openssh" >> $(METADATA)
Jakub Jelen 1ce235
	@echo "Requires:        openssh pam_ssh_agent_auth pam-devel expect" >> $(METADATA)
Jakub Jelen 1ce235
	@echo "RhtsRequires:    library(distribution/fips)" >> $(METADATA)
Jakub Jelen 1ce235
	@echo "Priority:        Normal" >> $(METADATA)
Jakub Jelen 1ce235
	@echo "License:         GPLv2+" >> $(METADATA)
Jakub Jelen 1ce235
	@echo "Confidential:    no" >> $(METADATA)
Jakub Jelen 1ce235
	@echo "Destructive:     no" >> $(METADATA)
Jakub Jelen 1ce235
	@echo "Releases:        -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA)
Jakub Jelen 1ce235
Jakub Jelen 1ce235
	rhts-lint $(METADATA)