r7930: - added testing of the cifs passthru backend
authorAndrew Tridgell <tridge@samba.org>
Sun, 26 Jun 2005 11:34:03 +0000 (11:34 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:18:51 +0000 (13:18 -0500)
- removed redundent $ADDARG code in selftest
(This used to be commit e431d0e9525c633c663ca48baea321369e39b226)

source4/script/tests/selftest.sh

index 80aaae0b3cd67d8c917a5f188d05e5be074d358e..bf1b80c099cb208ce702521147ef8388cbd03ee3 100755 (executable)
@@ -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=$?