aboutsummaryrefslogtreecommitdiff
path: root/xtests/tst-pam_group1.sh
diff options
context:
space:
mode:
authorThorsten Kukuk <kukuk@thkukuk.de>2007-10-01 09:41:32 +0000
committerThorsten Kukuk <kukuk@thkukuk.de>2007-10-01 09:41:32 +0000
commit417cb2fbd8bd7ca905c5611588654516c58bced1 (patch)
tree603035e7403a52d403b9cf4e365b080c469d989f /xtests/tst-pam_group1.sh
parent1435f0a4045b3af4f1390aa8b9054b8ac9a0a0b4 (diff)
downloadpam-417cb2fbd8bd7ca905c5611588654516c58bced1.tar.gz
pam-417cb2fbd8bd7ca905c5611588654516c58bced1.tar.bz2
pam-417cb2fbd8bd7ca905c5611588654516c58bced1.zip
Relevant BUGIDs:
Purpose of commit: bugfix Commit summary: --------------- 2007-10-01 Thorsten Kukuk <kukuk@thkukuk.de> * xtests/tst-pam_group1.c: New test case for user compare in pam_group. * xtests/tst-pam_group1.sh: Script to run test case. * xtests/tst-pam_group1.pamd: Config for test case. * xtests/Makefile.am: Add tst-pam_group1 test case. * xtests/run-xtests.sh: Save/restore group.conf. * xtests/group.conf: New. * modules/pam_xauth/pam_xauth.c (pam_sm_open_session): Don't free arguments used for putenv(). * doc/man/pam_putenv.3.xml: Document that application has to free the memory.
Diffstat (limited to 'xtests/tst-pam_group1.sh')
-rwxr-xr-xxtests/tst-pam_group1.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/xtests/tst-pam_group1.sh b/xtests/tst-pam_group1.sh
new file mode 100755
index 00000000..2d38a6ad
--- /dev/null
+++ b/xtests/tst-pam_group1.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+/usr/sbin/groupadd -p '!!' tstpamgrp
+/usr/sbin/useradd -p '!!' tstpamgrp
+/usr/sbin/useradd -p '!!' tstpamgrp2
+./tst-pam_group1
+RET=$?
+/usr/sbin/userdel -r tstpamgrp 2> /dev/null
+/usr/sbin/userdel -r tstpamgrp2 2> /dev/null
+/usr/sbin/groupdel tstpamgrp 2> /dev/null
+exit $RET