summaryrefslogtreecommitdiff
path: root/xtests/run-xtests.sh
diff options
context:
space:
mode:
authorStefan Schubert <schubi@suse.de>2022-11-15 13:55:40 +0100
committerStefan Schubert <stefan@gefluegelhof-schubert.de>2022-12-07 16:24:09 +0100
commite4917734c63ef6e887b3c4760771a14f75b9eb1f (patch)
treeed56bd49808fbe0fceefe1777ec980ac6d9f72c3 /xtests/run-xtests.sh
parent5c1d6301fe872d5954de5e4ddf74adec9711c177 (diff)
downloadlinux-pam-git-e4917734c63ef6e887b3c4760771a14f75b9eb1f.tar.gz
pam_shells: Added xtest test case
Test case for checking pam_authenticate in pam_shells.
Diffstat (limited to 'xtests/run-xtests.sh')
-rwxr-xr-xxtests/run-xtests.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/xtests/run-xtests.sh b/xtests/run-xtests.sh
index ff9a4dc1..e580e0ab 100755
--- a/xtests/run-xtests.sh
+++ b/xtests/run-xtests.sh
@@ -22,6 +22,10 @@ for config in access.conf group.conf time.conf limits.conf ; do
mv /etc/security/$config /etc/security/$config-pam-xtests
install -m 644 "${SRCDIR}"/$config /etc/security/$config
done
+[ -f /etc/shells ] &&
+ mv /etc/shells /etc/shells-pam-xtests
+install -m 644 "${SRCDIR}"/shells.conf /etc/shells
+
[ -f /etc/security/opasswd ] &&
mv /etc/security/opasswd /etc/security/opasswd-pam-xtests
@@ -58,6 +62,9 @@ for config in access.conf group.conf time.conf limits.conf opasswd ; do
fi
done
+[ -f "/etc/shells-pam-xtests" ] &&
+ mv /etc/shells-pam-xtests /etc/shells
+
if test "$failed" -ne 0; then
echo "==================="
echo "$failed of $all tests failed"