summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-06-26 11:34:03 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:18:51 -0500
commit6afb06d8e1b2be5d72ddeaad4c87ce9bdca3922a (patch)
tree6f4ee9b12108549889f08d6fe74bb8a2c250540d
parentbd23956fa5f6f88bbf4e4d9af2e88b7153adf6e9 (diff)
downloadsamba-6afb06d8e1b2be5d72ddeaad4c87ce9bdca3922a.tar.gz
samba-6afb06d8e1b2be5d72ddeaad4c87ce9bdca3922a.tar.bz2
samba-6afb06d8e1b2be5d72ddeaad4c87ce9bdca3922a.zip
r7930: - added testing of the cifs passthru backend
- removed redundent $ADDARG code in selftest (This used to be commit e431d0e9525c633c663ca48baea321369e39b226)
-rwxr-xr-xsource4/script/tests/selftest.sh26
1 files changed, 18 insertions, 8 deletions
diff --git a/source4/script/tests/selftest.sh b/source4/script/tests/selftest.sh
index 80aaae0b3c..bf1b80c099 100755
--- a/source4/script/tests/selftest.sh
+++ b/source4/script/tests/selftest.sh
@@ -70,11 +70,19 @@ cat >$CONFFILE<<EOF
ntvfs handler = posix
posix:sharedelay = 100000
posix:eadb = $LOCKDIR/eadb.tdb
+
+[cifs]
+ read only = no
+ ntvfs handler = cifs
+ cifs:server = localhost
+ cifs:user = $USERNAME
+ cifs:password = $PASSWORD
+ cifs:domain = $DOMAIN
+ cifs:share = tmp
EOF
-ADDARG="-s $CONFFILE"
if [ x"$RUN_FROM_BUILD_FARM" = x"yes" ];then
- ADDARG="$ADDARG --option=\"torture:progress=no\""
+ CONFIGURATION="$CONFIGURATION --option=\"torture:progress=no\""
fi
smbd_check_or_start
@@ -89,15 +97,17 @@ START=`date`
# give time for nbt server to register its names
echo delaying for nbt name registration
sleep 4
+ bin/nmblookup -U localhost localhost
failed=0
$SRCDIR/script/tests/test_ldap.sh localhost $USERNAME $PASSWORD || failed=`expr $failed + $?`
- $SRCDIR/script/tests/test_rpc.sh localhost $USERNAME $PASSWORD $DOMAIN $ADDARG || failed=`expr $failed + $?`
- $SRCDIR/script/tests/test_session_key.sh localhost $USERNAME $PASSWORD $DOMAIN $ADDARG || failed=`expr $failed + $?`
- $SRCDIR/script/tests/test_binding_string.sh localhost $USERNAME $PASSWORD $DOMAIN $ADDARG || failed=`expr $failed + $?`
- $SRCDIR/script/tests/test_echo.sh localhost $USERNAME $PASSWORD $DOMAIN $ADDARG || failed=`expr $failed + $?`
- $SRCDIR/script/tests/test_posix.sh //localhost/tmp $USERNAME $PASSWORD "" $ADDARG || failed=`expr $failed + $?`
- $SRCDIR/script/tests/test_local.sh $ADDARG || failed=`expr $failed + $?`
+ $SRCDIR/script/tests/test_quick.sh //localhost/cifs $USERNAME $PASSWORD "" || failed=`expr $failed + $?`
+ $SRCDIR/script/tests/test_rpc.sh localhost $USERNAME $PASSWORD $DOMAIN || failed=`expr $failed + $?`
+ $SRCDIR/script/tests/test_session_key.sh localhost $USERNAME $PASSWORD $DOMAIN || failed=`expr $failed + $?`
+ $SRCDIR/script/tests/test_binding_string.sh localhost $USERNAME $PASSWORD $DOMAIN || failed=`expr $failed + $?`
+ $SRCDIR/script/tests/test_echo.sh localhost $USERNAME $PASSWORD $DOMAIN || failed=`expr $failed + $?`
+ $SRCDIR/script/tests/test_posix.sh //localhost/tmp $USERNAME $PASSWORD "" || failed=`expr $failed + $?`
+ $SRCDIR/script/tests/test_local.sh || failed=`expr $failed + $?`
exit $failed
) 9>$SMBD_TEST_FIFO
failed=$?