s3:smb2_break: make use of file_fsp_smb2()
[Samba/gebeck_regimport.git] / source4 / utils / tests / test_demote.sh
blob0c2c03c98b690519be38e753b255da1c085bae95
1 #!/bin/sh
2 # Blackbox tests for samba-tool
4 SERVER=$1
5 SERVER_IP=$2
6 USERNAME=$3
7 PASSWORD=$4
8 DOMAIN=$5
9 DC=$6
10 PROV=$7
11 smbclient=$8
12 shift 8
14 failed=0
16 samba4bindir="$BINDIR"
17 samba_tool="$samba4bindir/samba-tool"
19 testit() {
20 name="$1"
21 shift
22 cmdline="$*"
23 echo "test: $name"
24 $cmdline
25 status=$?
26 if [ x$status = x0 ]; then
27 echo "success: $name"
28 else
29 echo "failure: $name"
30 failed=`expr $failed + 1`
32 return $status
36 testit "demote" $VALGRIND $samba_tool domain demote --server $DC -s $PROV/etc/smb.conf -W "$DOMAIN" -U"$USERNAME%$PASSWORD"
38 exit $failed