diff options
author | Matthieu Patou <mat@matws.net> | 2010-03-09 15:39:56 +0300 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-09-11 19:13:46 +0200 |
commit | 6bd6fdcd7275511f542ec4c640028a6c088a4d8a (patch) | |
tree | fee6338463dcb32d441f4d2ad92addff99128f09 | |
parent | 8a0db43ad8d84c195fd6cd716ec92f9b47ab4649 (diff) | |
download | samba-6bd6fdcd7275511f542ec4c640028a6c088a4d8a.tar.gz samba-6bd6fdcd7275511f542ec4c640028a6c088a4d8a.tar.bz2 samba-6bd6fdcd7275511f542ec4c640028a6c088a4d8a.zip |
s4:unittest: Test wbinfo --group-info and --gid-info
Signed-off-by: Matthias Dieter Wallnöfer <mdw@samba.org>
-rwxr-xr-x | nsswitch/tests/test_wbinfo.sh | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/nsswitch/tests/test_wbinfo.sh b/nsswitch/tests/test_wbinfo.sh index 952dd13265..4efffc873e 100755 --- a/nsswitch/tests/test_wbinfo.sh +++ b/nsswitch/tests/test_wbinfo.sh @@ -176,9 +176,17 @@ testit "wbinfo -i against $TARGET" $wbinfo -i "$DOMAIN/$USERNAME" || failed=`exp testit "wbinfo --uid-info against $TARGET" $wbinfo --uid-info $admin_uid || failed=`expr $failed + 1` -# this does not work -knownfail "wbinfo --group-info against $TARGET" $wbinfo --group-info "S-1-22-2-0" -knownfail "wbinfo --gid-info against $TARGET" $wbinfo --gid-info 30001 +echo "test: wbinfo --group-info against $TARGET" +rawgid=`$wbinfo --group-info "Domain admins" | sed 's/.*:\([0-9][0-9]*\):/\1/'` +if test x$? = x0; then + echo "success: wbinfo --group-info against $TARGET" +else + echo "failure: wbinfo --group-info against $TARGET" + failed=`expr $failed + 1` +fi + +gid=`echo $rawgid | sed 's/.*:\([0-9][0-9]*\):/\1/'` +testit "wbinfo --gid-info against $TARGET" $wbinfo --gid-info $gid || failed=`expr $failed + 1` testit "wbinfo -r against $TARGET" $wbinfo -r "$DOMAIN/$USERNAME" || failed=`expr $failed + 1` |