1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00
samba-mirror/source3/script/tests/test_wbinfo_s3.sh
Michael Adam 41075fbfa1 testsuite: use domain==workgroup in wbinfo tests now that we are PDC.
Previously domain==netbios name was the right thing to use.

Michael
(This used to be commit a5fc47c2457ce370a4f6150b9f2a417dac7589bf)
2008-05-06 12:26:14 +02:00

51 lines
1.0 KiB
Bash
Executable File

#!/bin/sh
if [ $# -lt 4 ]; then
cat <<EOF
Usage: test_wbinfo_s3.sh DOMAIN SERVER USERNAME PASSWORD <wbinfo args>
EOF
exit 1;
fi
domain="$1"
server="$2"
username="$3"
password="$4"
shift 4
ADDARGS="$*"
incdir=`dirname $0`
. $incdir/test_functions.sh
OLDIFS=$IFS;
tests="--ping"
tests="$tests:--separator"
tests="$tests:--own-domain"
tests="$tests:--all-domains"
tests="$tests:--trusted-domains"
tests="$tests:--domain-info=BUILTIN"
tests="$tests:--domain-info=$domain"
tests="$tests:--online-status"
tests="$tests:--online-status --domain=BUILTIN"
tests="$tests:--online-status --domain=$domain"
#Didn't pass yet# tests="$tests:--domain-users"
tests="$tests:--domain-groups"
tests="$tests:--name-to-sid=$username"
#Didn't pass yet# tests="$tests:--user-info=$username"
tests="$tests:--user-groups=$username"
failed=0
OLDIFS=$IFS
NEWIFS=$':'
IFS=$NEWIFS
for t in $tests; do
IFS=$OLDIFS
testit "wbinfo $t" $VALGRIND $BINDIR/wbinfo $CONFIGURATION $ADDARGS $t || failed=`expr $failed + 1`
IFS=$NEWIFS
done
IFS=$OLDIFS
testok $0 $failed