diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-05 17:47:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-05 17:47:29 +0000 |
commit | 4f5791ebd03eaec1c7da0865a383175b05102712 (patch) | |
tree | 8ce7b00f7a76baa386372422adebbe64510812d4 /testsuite/nsswitch/getgrnam.exp | |
parent | Initial commit. (diff) | |
download | samba-upstream.tar.xz samba-upstream.zip |
Adding upstream version 2:4.17.12+dfsg.upstream/2%4.17.12+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testsuite/nsswitch/getgrnam.exp')
-rw-r--r-- | testsuite/nsswitch/getgrnam.exp | 28 |
1 files changed, 28 insertions, 0 deletions
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" + } +} |