rcolebaugh / rpms / openssh

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