From 6bd6fdcd7275511f542ec4c640028a6c088a4d8a Mon Sep 17 00:00:00 2001 From: Matthieu Patou Date: Tue, 9 Mar 2010 15:39:56 +0300 Subject: s4:unittest: Test wbinfo --group-info and --gid-info MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Matthias Dieter Wallnöfer --- nsswitch/tests/test_wbinfo.sh | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'nsswitch/tests') 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` -- cgit