8 if test -z "$ROOT"; then
20 mkdir -p $PREFIX || exit $?
27 TMPDIR=$PREFIX_ABS/tmp
28 LIBDIR=$PREFIX_ABS/lib
29 PIDDIR=$PREFIX_ABS/pid
30 CONFFILE=$LIBDIR/smb.conf
31 PRIVATEDIR=$PREFIX_ABS/private
32 NCALRPCDIR=$PREFIX_ABS/ncalrpc
33 LOCKDIR=$PREFIX_ABS/lockdir
34 TLSDIR=$PRIVATEDIR/tls
35 CONFIGURATION="--configfile=$CONFFILE"
38 SMBD_TEST_FIFO="$PREFIX/smbd_test.fifo"
40 SMBD_TEST_LOG="$PREFIX/smbd_test.log"
44 if [ x"$DO_SOCKET_WRAPPER" = x"SOCKET_WRAPPER" ];then
45 SOCKET_WRAPPER_DIR="$PREFIX/socket_wrapper_dir"
46 export SOCKET_WRAPPER_DIR
47 echo "SOCKET_WRAPPER_DIR=$SOCKET_WRAPPER_DIR"
50 # start off with 0 failures
55 . $incdir/test_functions.sh
61 mkdir -p $PRIVATEDIR $LIBDIR $PIDDIR $NCALRPCDIR $LOCKDIR $TMPDIR $TLSDIR
65 netbios name = LOCALHOST
68 private dir = $PRIVATEDIR
69 pid directory = $PIDDIR
70 ncalrpc dir = $NCALRPCDIR
72 js include = $SRCDIR/scripting/libjs
73 name resolve order = bcast
80 posix:sharedelay = 100000
81 posix:eadb = $LOCKDIR/eadb.tdb
86 cifs:server = localhost
88 cifs:password = $PASSWORD
93 ./setup/provision $CONFIGURATION --quiet --domain $DOMAIN --realm $REALM \
94 --adminpass $PASSWORD --root=$ROOT
96 if [ x"$RUN_FROM_BUILD_FARM" = x"yes" ];then
97 CONFIGURATION="$CONFIGURATION --option=\"torture:progress=no\""
102 # ensure any one smbtorture call doesn't run too long
103 TORTURE_OPTIONS="--maximum-runtime=300 $CONFIGURATION"
104 export TORTURE_OPTIONS
109 # give time for nbt server to register its names
110 echo delaying for nbt name registration
112 bin/nmblookup -U localhost localhost
115 $SRCDIR/script/tests/test_ejs.sh localhost $USERNAME $PASSWORD || failed=`expr $failed + $?`
116 $SRCDIR/script/tests/test_ldap.sh localhost $USERNAME $PASSWORD || failed=`expr $failed + $?`
117 $SRCDIR/script/tests/test_quick.sh //localhost/cifs $USERNAME $PASSWORD "" || failed=`expr $failed + $?`
118 $SRCDIR/script/tests/test_rpc.sh localhost $USERNAME $PASSWORD $DOMAIN || failed=`expr $failed + $?`
119 $SRCDIR/script/tests/test_session_key.sh localhost $USERNAME $PASSWORD $DOMAIN || failed=`expr $failed + $?`
120 $SRCDIR/script/tests/test_binding_string.sh localhost $USERNAME $PASSWORD $DOMAIN || failed=`expr $failed + $?`
121 $SRCDIR/script/tests/test_echo.sh localhost $USERNAME $PASSWORD $DOMAIN || failed=`expr $failed + $?`
122 $SRCDIR/script/tests/test_posix.sh //localhost/tmp $USERNAME $PASSWORD "" || failed=`expr $failed + $?`
123 $SRCDIR/script/tests/test_local.sh || failed=`expr $failed + $?`
129 echo "START: $START ($0)";
130 echo "END: $END ($0)";
132 teststatus $0 $failed