blob: b0b6824500d0948c5f0bfddce16783346ecf7d50 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
#!/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=$server"
tests="$tests:--online-status"
tests="$tests:--online-status --domain=BUILTIN"
tests="$tests:--online-status --domain=$server"
#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
|