source: branches/samba-3.2.x/source/script/tests/test_wbinfo_s3.sh@ 553

Last change on this file since 553 was 272, checked in by Herwig Bauernfeind, 17 years ago

Update 3.2 to 3.2.12

File size: 1.1 KB
Line 
1#!/bin/sh
2
3if [ $# -lt 4 ]; then
4cat <<EOF
5Usage: test_wbinfo_s3.sh DOMAIN SERVER USERNAME PASSWORD <wbinfo args>
6EOF
7exit 1;
8fi
9
10domain="$1"
11server="$2"
12username="$3"
13password="$4"
14shift 4
15ADDARGS="$*"
16
17incdir=`dirname $0`
18. $incdir/test_functions.sh
19
20OLDIFS=$IFS;
21
22tests="--ping"
23tests="$tests:--separator"
24tests="$tests:--own-domain"
25tests="$tests:--all-domains"
26tests="$tests:--trusted-domains"
27tests="$tests:--domain-info=BUILTIN"
28tests="$tests:--domain-info=$domain"
29tests="$tests:--online-status"
30tests="$tests:--online-status --domain=BUILTIN"
31tests="$tests:--online-status --domain=$domain"
32#Didn't pass yet# tests="$tests:--domain-users"
33tests="$tests:--domain-groups"
34tests="$tests:--name-to-sid=$username"
35#Didn't pass yet# tests="$tests:--user-info=$username"
36tests="$tests:--user-groups=$username"
37tests="$tests:--allocate-uid"
38tests="$tests:--allocate-gid"
39
40failed=0
41
42OLDIFS=$IFS
43NEWIFS=$':'
44IFS=$NEWIFS
45for t in $tests; do
46 IFS=$OLDIFS
47 testit "wbinfo $t" $VALGRIND $BINDIR/wbinfo $CONFIGURATION $ADDARGS $t || failed=`expr $failed + 1`
48 IFS=$NEWIFS
49done
50IFS=$OLDIFS
51
52testok $0 $failed
Note: See TracBrowser for help on using the repository browser.