X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=testsuite%2Fnsswitch%2Fgetgrnam.exp;fp=testsuite%2Fnsswitch%2Fgetgrnam.exp;h=92c5b76742eaa4ab4ebbe1b72068c036775f2471;hb=6bca4ca307d55b6dc888e56cee47aebcddbce786;hp=0000000000000000000000000000000000000000;hpb=7fd70fa738b636089bcc6c961aa3eaa02f20dda2;p=samba diff --git a/testsuite/nsswitch/getgrnam.exp b/testsuite/nsswitch/getgrnam.exp new file mode 100644 index 0000000..92c5b76 --- /dev/null +++ b/testsuite/nsswitch/getgrnam.exp @@ -0,0 +1,28 @@ +# +# @(#) Test domain groups resolve using getgrnam() +# + +load_lib "util-defs.exp" +load_lib "compile.exp" + +# Compile getgrnam.c + +simple_compile "getgrnam" + +# Test domain groups + +set group_list [split [util_start "bin/wbinfo" "-g"] "\n"] + +verbose $group_list + +foreach {group} $group_list { + set output [util_start "$srcdir/$subdir/getgrnam" "\"$group\"" ""] + + verbose $output + + if {[regexp "PASS:" $output]} { + pass "getgrnam $group" + } else { + fail "getgrnam $group" + } +}