s4:kdc: Implement KDC plugin hardware authentication policy
[samba.git] / source3 / script / tests / test_smbcquota.sh
1 #!/bin/sh
2 # Unix SMB/CIFS implementation.
3 # Tests for smbcquotas
4 # Copyright (C) Noel Power 2017
5
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3 of the License, or
9 # (at your option) any later version.
10
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 # GNU General Public License for more details.
15
16 # You should have received a copy of the GNU General Public License
17 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
18 #
19
20 #
21 # Blackbox test wrapper for smbcquota
22 #
23 if [ $# -lt 6 ]; then
24         cat <<EOF
25 Usage: test_smbcquota.sh SERVER DOMAIN USERNAME PASSWORD LOCAL_PATH SMBCQUOTAS
26 EOF
27         exit 1
28 fi
29
30 SERVER=$1
31 DOMAIN=$2
32 USERNAME=$3
33 PASSWORD=$4
34 ENVDIR=$(dirname $5)
35 SMBCQUOTAS="$VALGRIND $6"
36 shift 6
37
38 TEST_SMBCQUOTAS=$(dirname $0)/test_smbcquota.py
39
40 incdir=$(dirname $0)/../../../testprogs/blackbox
41 . $incdir/subunit.sh
42
43 testit "smbcquotas" ${TEST_SMBCQUOTAS} ${SERVER} ${DOMAIN} ${USERNAME} ${PASSWORD} ${ENVDIR} ${SMBCQUOTAS} || failed=$(expr $failed + 1)
44
45 testok $0 $failed