|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
#
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
# Makefile of /CoreOS/bash/Sanity/login-shell
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
# Description: the test creates user with bash as login shell and verified the user can log in and get th
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
# Author: Martin Kyral <mkyral@redhat.com>
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
#
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
#
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
# Copyright (c) 2016 Red Hat, Inc.
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
#
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
# This program is free software: you can redistribute it and/or
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
# modify it under the terms of the GNU General Public License as
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
# published by the Free Software Foundation, either version 2 of
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
# the License, or (at your option) any later version.
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
#
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
# This program is distributed in the hope that it will be
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
# useful, but WITHOUT ANY WARRANTY; without even the implied
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
# PURPOSE. See the GNU General Public License for more details.
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
#
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
# You should have received a copy of the GNU General Public License
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
# along with this program. If not, see http://www.gnu.org/licenses/.
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
#
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
export TEST=/CoreOS/bash/Sanity/login-shell
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
export TESTVERSION=1.0
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
BUILT_FILES=
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
FILES=$(METADATA) runtest.sh Makefile PURPOSE script.exp ssh.exp tst.sh
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
.PHONY: all install download clean
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
run: $(FILES) build
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
./runtest.sh
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
build: $(BUILT_FILES)
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
test -x runtest.sh || chmod a+x runtest.sh
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
clean:
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
rm -f *~ $(BUILT_FILES)
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
include /usr/share/rhts/lib/rhts-make.include
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
$(METADATA): Makefile
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
@echo "Owner: Martin Kyral <mkyral@redhat.com>" > $(METADATA)
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
@echo "Name: $(TEST)" >> $(METADATA)
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
@echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
@echo "Path: $(TEST_DIR)" >> $(METADATA)
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
@echo "Description: the test creates user with bash as login shell and verified the user can log in and get th" >> $(METADATA)
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
@echo "Type: Sanity" >> $(METADATA)
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
@echo "TestTime: 5m" >> $(METADATA)
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
@echo "RunFor: ksh zsh bash dash mksh pdksh" >> $(METADATA)
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
@echo "Requires: bash" >> $(METADATA)
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
@echo "Requires: expect" >> $(METADATA)
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
@echo "Requires: procps-ng" >> $(METADATA)
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
@echo "Requires: passwd" >> $(METADATA)
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
@echo "Requires: openssh-clients openssh-server" >> $(METADATA)
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
@echo "Priority: Normal" >> $(METADATA)
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
@echo "License: GPLv2+" >> $(METADATA)
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
@echo "Confidential: no" >> $(METADATA)
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
@echo "Destructive: no" >> $(METADATA)
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
|
|
![](https://seccdn.libravatar.org/avatar/bcdab67b96d2d5b134598cc5a4f51879e4c636c5eea488e76417ad8d9fde454a?s=16&d=retro) |
7f89380 |
rhts-lint $(METADATA)
|