diff options
author | Tim Potter <tpot@samba.org> | 2001-05-09 04:59:49 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2001-05-09 04:59:49 +0000 |
commit | dcc39ea43984fe9f9c683e48423794793a923e28 (patch) | |
tree | cfccda702e3f50fa6da408c42937f1007abee49e /testsuite/nsswitch/initgroups.exp | |
parent | 9de17c5c3892930d6d1d349df63e2c4206787ceb (diff) | |
download | samba-dcc39ea43984fe9f9c683e48423794793a923e28.tar.gz samba-dcc39ea43984fe9f9c683e48423794793a923e28.tar.bz2 samba-dcc39ea43984fe9f9c683e48423794793a923e28.zip |
Cleaned up bitrot in nsswitch testsuite. Merged tests across from TNG
branch.
(This used to be commit acef477383e5739292e764c17cef87822a09f13b)
Diffstat (limited to 'testsuite/nsswitch/initgroups.exp')
-rw-r--r-- | testsuite/nsswitch/initgroups.exp | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/testsuite/nsswitch/initgroups.exp b/testsuite/nsswitch/initgroups.exp new file mode 100644 index 0000000000..ab21bcc9e7 --- /dev/null +++ b/testsuite/nsswitch/initgroups.exp @@ -0,0 +1,37 @@ +# +# @(#) Test initgroups function +# + +load_lib util-defs.exp +load_lib compile.exp + +if { [util_start "id -u"] != 0 } { + set test_desc "must be userid 0 to run" + note $test_desc + untested $test_desc + return +} + +# Compile test program + +simple_compile "initgroups" + +# Test domain users + +set user_list [split [util_start "bin/wbinfo" "-u"] "\n"] + +verbose $user_list + +foreach { user } $user_list { + set output [util_start "$srcdir/$subdir/initgroups" "\"$user\"" ""] + + verbose $output + + set test_desc "initgroups $user" + + if { [regexp "PASS" $output] } { + pass $test_desc + } else { + fail $test_desc + } +} |