diff options
Diffstat (limited to 'testsuite/nsswitch/getpwnam.exp')
-rw-r--r-- | testsuite/nsswitch/getpwnam.exp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/testsuite/nsswitch/getpwnam.exp b/testsuite/nsswitch/getpwnam.exp new file mode 100644 index 0000000..5f6b234 --- /dev/null +++ b/testsuite/nsswitch/getpwnam.exp @@ -0,0 +1,28 @@ +# +# @(#) Test domain users resolve using getpwnam() +# + +load_lib util-defs.exp +load_lib "compile.exp" + +# Compile getpwnam.c + +simple_compile "getpwnam" + +# 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/getpwnam" "\"$user\"" ""] + + verbose $output + + if {[regexp "PASS:" $output]} { + pass "getpwnam $user" + } else { + fail "getpwnam $user" + } +} |