svn commit: samba r25722 - in branches/SAMBA_4_0: . source/selftest

jelmer at samba.org jelmer at samba.org
Wed Oct 24 19:16:11 GMT 2007


Author: jelmer
Date: 2007-10-24 19:16:10 +0000 (Wed, 24 Oct 2007)
New Revision: 25722

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=25722

Log:
Start merging the various test plan files for Samba 4 into one, so that it'll 
be easier to split selftest/ into a generic, a Samba 3 and a Samba 4-specific 
bit.

Removed:
   branches/SAMBA_4_0/source/selftest/test_blackbox.sh
   branches/SAMBA_4_0/source/selftest/test_cifs.sh
   branches/SAMBA_4_0/source/selftest/test_local.sh
   branches/SAMBA_4_0/source/selftest/test_member.sh
   branches/SAMBA_4_0/source/selftest/test_net.sh
   branches/SAMBA_4_0/source/selftest/test_pidl.sh
   branches/SAMBA_4_0/source/selftest/test_posix.sh
   branches/SAMBA_4_0/source/selftest/test_simple.sh
Modified:
   branches/SAMBA_4_0/
   branches/SAMBA_4_0/source/selftest/tests_all.sh


Changeset:

Property changes on: branches/SAMBA_4_0
___________________________________________________________________
Name: bzr:revision-info
...skipped...
Name: bzr:file-ids
...skipped...
Name: bzr:revision-id:v3-trunk0
...skipped...

Deleted: branches/SAMBA_4_0/source/selftest/test_blackbox.sh
===================================================================
--- branches/SAMBA_4_0/source/selftest/test_blackbox.sh	2007-10-24 14:19:47 UTC (rev 25721)
+++ branches/SAMBA_4_0/source/selftest/test_blackbox.sh	2007-10-24 19:16:10 UTC (rev 25722)
@@ -1,25 +0,0 @@
-#!/bin/sh
-
-# this runs tests that interact directly with the command-line tools rather than using the API
-
-if [ $# -lt 1 ]; then
-cat <<EOF
-Usage: test_blackbox.sh PREFIX [...]
-EOF
-exit 1;
-fi
-
-PREFIX=$1
-shift 1
-ADDARGS="$*"
-
-incdir=`dirname $0`
-. $incdir/test_functions.sh
-
-bbdir=$incdir/../../testprogs/blackbox
-
-plantest "blackbox.smbclient" dc $bbdir/test_smbclient.sh "\$SERVER" "\$USERNAME" "\$PASSWORD" "\$DOMAIN" "$PREFIX" "$ADDARGS"
-plantest "blackbox.kinit" dc $bbdir/test_kinit.sh "\$SERVER" "\$USERNAME" "\$PASSWORD" "\$REALM" "\$DOMAIN" "$PREFIX" "$ADDARGS"
-plantest "blackbox.cifsdd" dc $bbdir/test_cifsdd.sh "\$SERVER" "\$USERNAME" "\$PASSWORD" "\$DOMAIN" "$ADDARGS"
-plantest "blackbox.nmblookup:dc" dc $bbdir/test_nmblookup.sh "\$NETBIOSNAME" "\$NETBIOSALIAS" "\$SERVER" "\$SERVER_IP" $ADDARGS
-plantest "blackbox.nmblookup:member" member $bbdir/test_nmblookup.sh "\$NETBIOSNAME" "\$NETBIOSALIAS" "\$SERVER" "\$SERVER_IP" $ADDARGS

Deleted: branches/SAMBA_4_0/source/selftest/test_cifs.sh
===================================================================
--- branches/SAMBA_4_0/source/selftest/test_cifs.sh	2007-10-24 14:19:47 UTC (rev 25721)
+++ branches/SAMBA_4_0/source/selftest/test_cifs.sh	2007-10-24 19:16:10 UTC (rev 25722)
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-# this runs the file serving tests that are expected to pass with the
-# current posix ntvfs backend, via the ntvfs cifs proxy
-
-ADDARGS="$*"
-
-incdir=`dirname $0`
-. $incdir/test_functions.sh
-
-raw=`$samba4bindir/smbtorture --list | grep "^RAW-" | xargs`
-base=`$samba4bindir/smbtorture --list | grep "^BASE-" | xargs`
-tests="$base $raw"
-
-for t in $tests; do
-    plantest "ntvfs/cifs $t" dc $VALGRIND $samba4bindir/smbtorture $TORTURE_OPTIONS $ADDARGS //\$NETBIOSNAME/cifs -U"\$USERNAME"%"\$PASSWORD" $t
-done

Deleted: branches/SAMBA_4_0/source/selftest/test_local.sh
===================================================================
--- branches/SAMBA_4_0/source/selftest/test_local.sh	2007-10-24 14:19:47 UTC (rev 25721)
+++ branches/SAMBA_4_0/source/selftest/test_local.sh	2007-10-24 19:16:10 UTC (rev 25722)
@@ -1,10 +0,0 @@
-#!/bin/sh
-
-incdir=`dirname $0`
-. $incdir/test_functions.sh
-
-for t in `$samba4bindir/smbtorture --list | grep "^LOCAL-" | xargs`; do
-	plantest "$t" none $VALGRIND $samba4bindir/smbtorture $TORTURE_OPTIONS ncalrpc: $t "$*"
-done
-
-plantest "tdb stress" none $VALGRIND $samba4bindir/tdbtorture

Deleted: branches/SAMBA_4_0/source/selftest/test_member.sh
===================================================================
--- branches/SAMBA_4_0/source/selftest/test_member.sh	2007-10-24 14:19:47 UTC (rev 25721)
+++ branches/SAMBA_4_0/source/selftest/test_member.sh	2007-10-24 19:16:10 UTC (rev 25722)
@@ -1,11 +0,0 @@
-#!/bin/sh
-
-incdir=`dirname $0`
-. $incdir/test_functions.sh
-
-plantest "RPC-ECHO against member server with local creds" member $VALGRIND $samba4bindir/smbtorture $TORTURE_OPTIONS ncacn_np:"\$NETBIOSNAME" -U"\$NETBIOSNAME/\$USERNAME"%"\$PASSWORD" RPC-ECHO "$*"
-plantest "RPC-ECHO against member server with domain creds" member $VALGRIND $samba4bindir/smbtorture $TORTURE_OPTIONS ncacn_np:"\$NETBIOSNAME" -U"\$DOMAIN/\$DC_USERNAME"%"\$DC_PASSWORD" RPC-ECHO "$*"
-plantest "RPC-SAMR against member server with local creds" member $VALGRIND $samba4bindir/smbtorture $TORTURE_OPTIONS ncacn_np:"\$NETBIOSNAME" -U"\$NETBIOSNAME/\$USERNAME"%"\$PASSWORD" "RPC-SAMR" "$*"
-plantest "RPC-SAMR-USERS against member server with local creds" member $VALGRIND $samba4bindir/smbtorture $TORTURE_OPTIONS ncacn_np:"\$NETBIOSNAME" -U"\$NETBIOSNAME/\$USERNAME"%"\$PASSWORD" "RPC-SAMR-USERS" "$*"
-plantest "RPC-SAMR-PASSWORDS against member server with local creds" member $VALGRIND $samba4bindir/smbtorture $TORTURE_OPTIONS ncacn_np:"\$NETBIOSNAME" -U"\$NETBIOSNAME/\$USERNAME"%"\$PASSWORD" "RPC-SAMR-PASSWORDS" "$*"
-plantest "wbinfo -a against member server with domain creds" member $VALGRIND $samba4bindir/wbinfo -a "\$DOMAIN/\$DC_USERNAME"%"\$DC_PASSWORD"

Deleted: branches/SAMBA_4_0/source/selftest/test_net.sh
===================================================================
--- branches/SAMBA_4_0/source/selftest/test_net.sh	2007-10-24 14:19:47 UTC (rev 25721)
+++ branches/SAMBA_4_0/source/selftest/test_net.sh	2007-10-24 19:16:10 UTC (rev 25722)
@@ -1,12 +0,0 @@
-#!/bin/sh
-
-# add tests to this list as they start passing, so we test
-# that they stay passing
-incdir=`dirname $0`
-. $incdir/test_functions.sh
-
-tests=`$samba4bindir/smbtorture --list | grep ^NET-`
-
-for t in $tests; do
-    plantest "$t" dc $VALGRIND $samba4bindir/smbtorture $TORTURE_OPTIONS "\$SERVER[$VALIDATE]" -U"\$USERNAME"%"\$PASSWORD" -W "\$DOMAIN" $t "$*"
-done

Deleted: branches/SAMBA_4_0/source/selftest/test_pidl.sh
===================================================================
--- branches/SAMBA_4_0/source/selftest/test_pidl.sh	2007-10-24 14:19:47 UTC (rev 25721)
+++ branches/SAMBA_4_0/source/selftest/test_pidl.sh	2007-10-24 19:16:10 UTC (rev 25722)
@@ -1,18 +0,0 @@
-#!/bin/sh
-if [ ! -n "$PERL" ]
-then
-	PERL=perl
-fi
-
-incdir=`dirname $0`
-. $incdir/test_functions.sh
-
-if test x"${PIDL_TESTS_SKIP}" = x"yes"; then
-   echo "Skipping pidl tests - PIDL_TESTS_SKIP=yes"
-elif $PERL -e 'eval require Test::More;' > /dev/null 2>&1; then
-  for f in $samba4srcdir/pidl/tests/*.pl; do
-     plantest "pidl/`basename $f`" none $PERL $f "|" $samba4srcdir/script/harness2subunit.pl
-  done
-else 
-   echo "Skipping pidl tests - Test::More not installed"
-fi

Deleted: branches/SAMBA_4_0/source/selftest/test_posix.sh
===================================================================
--- branches/SAMBA_4_0/source/selftest/test_posix.sh	2007-10-24 14:19:47 UTC (rev 25721)
+++ branches/SAMBA_4_0/source/selftest/test_posix.sh	2007-10-24 19:16:10 UTC (rev 25722)
@@ -1,18 +0,0 @@
-#!/bin/sh
-
-# this runs the file serving tests that are expected to pass with the
-# current posix ntvfs backend
-
-ADDARGS="$*"
-
-incdir=`dirname $0`
-. $incdir/test_functions.sh
-
-smb2=`$samba4bindir/smbtorture --list | grep "^SMB2-" | xargs`
-raw=`$samba4bindir/smbtorture --list | grep "^RAW-" | xargs`
-base=`$samba4bindir/smbtorture --list | grep "^BASE-" | xargs`
-tests="$base $raw $smb2"
-
-for t in $tests; do
-    plantest "$t" dc $VALGRIND $samba4bindir/smbtorture $TORTURE_OPTIONS $ADDARGS //\$SERVER/tmp -U"\$USERNAME"%"\$PASSWORD" $t
-done

Deleted: branches/SAMBA_4_0/source/selftest/test_simple.sh
===================================================================
--- branches/SAMBA_4_0/source/selftest/test_simple.sh	2007-10-24 14:19:47 UTC (rev 25721)
+++ branches/SAMBA_4_0/source/selftest/test_simple.sh	2007-10-24 19:16:10 UTC (rev 25722)
@@ -1,13 +0,0 @@
-#!/bin/sh
-# run a quick set of filesystem tests
-
-ADDARGS="$*"
-
-incdir=`dirname $0`
-. $incdir/test_functions.sh
-
-tests="BASE-RW1"
-
-for t in $tests; do
-    plantest "ntvfs/simple $t" dc $VALGRIND $samba4bindir/smbtorture $TORTURE_OPTIONS $ADDARGS //\$SERVER/simple -U"\$USERNAME"%"\$PASSWORD" $t
-done

Modified: branches/SAMBA_4_0/source/selftest/tests_all.sh
===================================================================
--- branches/SAMBA_4_0/source/selftest/tests_all.sh	2007-10-24 14:19:47 UTC (rev 25721)
+++ branches/SAMBA_4_0/source/selftest/tests_all.sh	2007-10-24 19:16:10 UTC (rev 25722)
@@ -1,21 +1,96 @@
 #!/bin/sh
-includedir=`dirname $0`
-$includedir/../bin/smbtorture -V
+if [ ! -n "$PERL" ]
+then
+	PERL=perl
+fi
+
+incdir=`dirname $0`
+. $incdir/test_functions.sh
+
+$incdir/../bin/smbtorture -V
+
 $SRCDIR/selftest/test_ejs.sh $CONFIGURATION
 $SRCDIR/selftest/test_ldap.sh 
 $SRCDIR/selftest/test_nbt.sh "dc"
 $SRCDIR/selftest/test_winbind.sh "dc"
 $SRCDIR/selftest/test_rpc.sh
-$SRCDIR/selftest/test_net.sh
+
+# Tests for the NET API
+
+net=`$samba4bindir/smbtorture --list | grep ^NET-`
+
+for t in $net; do
+    plantest "$t" dc $VALGRIND $samba4bindir/smbtorture $TORTURE_OPTIONS "\$SERVER[$VALIDATE]" -U"\$USERNAME"%"\$PASSWORD" -W "\$DOMAIN" $t "$*"
+done
+
 $SRCDIR/selftest/test_session_key.sh
 $SRCDIR/selftest/test_echo.sh
-$SRCDIR/selftest/test_posix.sh
-$SRCDIR/selftest/test_cifs.sh
-$SRCDIR/selftest/test_local.sh
-$SRCDIR/selftest/test_pidl.sh
-$SRCDIR/selftest/test_blackbox.sh $PREFIX
-$SRCDIR/selftest/test_simple.sh
+
+# Tests against the NTVFS POSIX backend
+smb2=`$samba4bindir/smbtorture --list | grep "^SMB2-" | xargs`
+raw=`$samba4bindir/smbtorture --list | grep "^RAW-" | xargs`
+base=`$samba4bindir/smbtorture --list | grep "^BASE-" | xargs`
+
+for t in $base $raw $smb2; do
+    plantest "$t" dc $VALGRIND $samba4bindir/smbtorture $TORTURE_OPTIONS $ADDARGS //\$SERVER/tmp -U"\$USERNAME"%"\$PASSWORD" $t
+done
+
+# Tests against the NTVFS CIFS backend
+for t in $base $raw; do
+    plantest "ntvfs/cifs $t" dc $VALGRIND $samba4bindir/smbtorture $TORTURE_OPTIONS //\$NETBIOSNAME/cifs -U"\$USERNAME"%"\$PASSWORD" $t
+done
+
+# Local tests
+
+for t in `$samba4bindir/smbtorture --list | grep "^LOCAL-" | xargs`; do
+	plantest "$t" none $VALGRIND $samba4bindir/smbtorture $TORTURE_OPTIONS ncalrpc: $t "$*"
+done
+
+if test -f $samba4bindir/tdbtorture
+then
+	plantest "tdb stress" none $VALGRIND $samba4bindir/tdbtorture
+fi
+
+# Pidl tests
+
+if test x"${PIDL_TESTS_SKIP}" = x"yes"; then
+   echo "Skipping pidl tests - PIDL_TESTS_SKIP=yes"
+elif $PERL -e 'eval require Test::More;' > /dev/null 2>&1; then
+  for f in $samba4srcdir/pidl/tests/*.pl; do
+     plantest "pidl/`basename $f`" none $PERL $f "|" $samba4srcdir/script/harness2subunit.pl
+  done
+else 
+   echo "Skipping pidl tests - Test::More not installed"
+fi
+
+# Blackbox Tests:
+# tests that interact directly with the command-line tools rather than using 
+# the API
+
+bbdir=$incdir/../../testprogs/blackbox
+
+plantest "blackbox.smbclient" dc $bbdir/test_smbclient.sh "\$SERVER" "\$USERNAME" "\$PASSWORD" "\$DOMAIN" "$PREFIX" 
+plantest "blackbox.kinit" dc $bbdir/test_kinit.sh "\$SERVER" "\$USERNAME" "\$PASSWORD" "\$REALM" "\$DOMAIN" "$PREFIX" 
+plantest "blackbox.cifsdd" dc $bbdir/test_cifsdd.sh "\$SERVER" "\$USERNAME" "\$PASSWORD" "\$DOMAIN" 
+plantest "blackbox.nmblookup:dc" dc $bbdir/test_nmblookup.sh "\$NETBIOSNAME" "\$NETBIOSALIAS" "\$SERVER" "\$SERVER_IP" 
+plantest "blackbox.nmblookup:member" member $bbdir/test_nmblookup.sh "\$NETBIOSNAME" "\$NETBIOSALIAS" "\$SERVER" "\$SERVER_IP"
+
+# Tests using the "Simple" NTVFS backend
+
+for t in "BASE-RW1"; do
+    plantest "ntvfs/simple $t" dc $VALGRIND $samba4bindir/smbtorture $TORTURE_OPTIONS $ADDARGS //\$SERVER/simple -U"\$USERNAME"%"\$PASSWORD" $t
+done
+
 $SRCDIR/selftest/test_s3upgrade.sh $PREFIX/upgrade
-$SRCDIR/selftest/test_member.sh
+
+# Domain Member Tests
+
+plantest "RPC-ECHO against member server with local creds" member $VALGRIND $samba4bindir/smbtorture $TORTURE_OPTIONS ncacn_np:"\$NETBIOSNAME" -U"\$NETBIOSNAME/\$USERNAME"%"\$PASSWORD" RPC-ECHO "$*"
+plantest "RPC-ECHO against member server with domain creds" member $VALGRIND $samba4bindir/smbtorture $TORTURE_OPTIONS ncacn_np:"\$NETBIOSNAME" -U"\$DOMAIN/\$DC_USERNAME"%"\$DC_PASSWORD" RPC-ECHO "$*"
+plantest "RPC-SAMR against member server with local creds" member $VALGRIND $samba4bindir/smbtorture $TORTURE_OPTIONS ncacn_np:"\$NETBIOSNAME" -U"\$NETBIOSNAME/\$USERNAME"%"\$PASSWORD" "RPC-SAMR" "$*"
+plantest "RPC-SAMR-USERS against member server with local creds" member $VALGRIND $samba4bindir/smbtorture $TORTURE_OPTIONS ncacn_np:"\$NETBIOSNAME" -U"\$NETBIOSNAME/\$USERNAME"%"\$PASSWORD" "RPC-SAMR-USERS" "$*"
+plantest "RPC-SAMR-PASSWORDS against member server with local creds" member $VALGRIND $samba4bindir/smbtorture $TORTURE_OPTIONS ncacn_np:"\$NETBIOSNAME" -U"\$NETBIOSNAME/\$USERNAME"%"\$PASSWORD" "RPC-SAMR-PASSWORDS" "$*"
+plantest "wbinfo -a against member server with domain creds" member $VALGRIND $samba4bindir/wbinfo -a "\$DOMAIN/\$DC_USERNAME"%"\$DC_PASSWORD"
+
 $SRCDIR/selftest/test_nbt.sh "member"
 $SRCDIR/selftest/test_winbind.sh "member"



More information about the samba-cvs mailing list