s3:param: add a utility function lp_idmap_range() to get the configured range for...
[Samba/gebeck_regimport.git] / testprogs / blackbox / test_wintest.sh
blobf13e94b99f1e05883f0bbedac6e4aa1017c3ad79
1 #!/bin/sh
2 # Blackbox tests for testing against windows machines
3 # Copyright (C) 2008 Jim McDonough
6 testwithconf() {
7 # define test variables, startup/shutdown scripts
8 . $1
9 shift 1
11 if [ -n "$WINTEST_STARTUP" ]; then
12 . $WINTEST_STARTUP;
15 testit "smbtorture" $smbtorture //$SERVER/$SHARE RAW-OPEN -W "$DOMAIN" -U"$USERNAME%$PASSWORD" $@ || failed=`expr $failed + 1`
17 if [ -n "$WINTEST_SHUTDOWN" ]; then
18 . $WINTEST_SHUTDOWN;
23 # main
24 # skip without WINTEST_CONF_DIR
25 if [ -z "$WINTEST_CONF_DIR" ]; then
26 exit 0;
29 SOCKET_WRAPPER_DIR=
30 export -n SOCKET_WRAPPER_DIR
32 failed=0
34 $basedir=`pwd`
36 samba4bindir=`dirname $0`/../../source4/bin
37 smbtorture=$samba4bindir/smbtorture
39 . `dirname $0`/subunit.sh
41 for wintest_conf in $WINTEST_CONF_DIR/*.conf; do
42 testwithconf "$wintest_conf" $@;
43 done
45 exit $failed