s4-selftest: Move more tests to scripting/python, simplifies running of tests.
authorJelmer Vernooij <jelmer@samba.org>
Wed, 22 Sep 2010 05:54:10 +0000 (22:54 -0700)
committerJelmer Vernooij <jelmer@samba.org>
Wed, 22 Sep 2010 05:54:38 +0000 (22:54 -0700)
source4/scripting/python/samba/tests/auth.py [moved from source4/auth/tests/bindings.py with 100% similarity]
source4/scripting/python/samba/tests/dcerpc/__init__.py
source4/scripting/python/samba/tests/dcerpc/misc.py
source4/scripting/python/samba/tests/gensec.py [moved from source4/auth/gensec/tests/bindings.py with 100% similarity]
source4/scripting/python/samba/tests/messaging.py [moved from source4/lib/messaging/tests/bindings.py with 100% similarity]
source4/scripting/python/samba/tests/param.py [moved from source4/param/tests/bindings.py with 100% similarity]
source4/scripting/python/samba/tests/registry.py [moved from source4/lib/registry/tests/bindings.py with 100% similarity]
source4/scripting/python/samba/tests/security.py [moved from source4/libcli/security/tests/bindings.py with 100% similarity]
source4/selftest/tests.sh

index 9e198460a3468b0c6195f34acea0e37d82c3506c..b6bf83030443607afd4d2f4f2691cf7f89a57dfd 100644 (file)
@@ -3,12 +3,12 @@
 
 # Unix SMB/CIFS implementation.
 # Copyright © Jelmer Vernooij <jelmer@samba.org> 2008
-#   
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
 # the Free Software Foundation; either version 3 of the License, or
 # (at your option) any later version.
-#   
+#
 # This program is distributed in the hope that it will be useful,
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
index 3526d74deea1dcea45ceb9f1e411f0e5a4888629..689cea360c7b6a38e427de143ff15cb032d0075d 100644 (file)
@@ -43,8 +43,8 @@ class GUIDTests(samba.tests.TestCase):
         guid2 = misc.GUID(text1)
         self.assertEquals(0, cmp(guid1, guid2))
         self.assertEquals(guid1, guid2)
-         
-        
+
+
 class PolicyHandleTests(samba.tests.TestCase):
 
     def test_init(self):
index 596604b6279c4f3a32d4595250296e10fafa52e1..b3bb85dd3473d83441e600d9c8f0644632ac2022 100755 (executable)
@@ -104,7 +104,7 @@ planpythontestsuite() {
        env=$2
        module="$3"
        shift 3
-       plantestsuite_idlist "$name" "$env" PYTHONPATH=$samba4srcdir/../lib/subunit/python:$samba4srcdir/../lib/testtools $PYTHON -m subunit.run $module
+       plantestsuite_idlist "$name" "$env" PYTHONPATH=$PYTHONPATH:$samba4srcdir/../lib/subunit/python:$samba4srcdir/../lib/testtools $PYTHON -m subunit.run $module
 }
 
 plansmbtorturetestsuite() {
@@ -175,8 +175,6 @@ do
        plansmbtorturetestsuite "$t" dc "-U\$USERNAME%\$PASSWORD" //\$SERVER_IP/_none_
 done
 
-# only do the ldb tests when not in quick mode - they are quite slow, and ldb
-# is now pretty well tested by the rest of the quick tests anyway
 LDBDIR=$samba4srcdir/lib/ldb
 export LDBDIR
 # Don't run LDB tests when using system ldb, as we won't have ldbtest installed
@@ -498,13 +496,13 @@ fi
 SUBUNITRUN="$VALGRIND $PYTHON $samba4srcdir/scripting/bin/subunitrun"
 plantestsuite "ldb.python" none PYTHONPATH="$PYTHONPATH:$samba4srcdir/lib/ldb/tests/python/" $PYTHON $samba4srcdir/lib/ldb/tests/python/api.py
 plantestsuite "credentials.python" none PYTHONPATH="$PYTHONPATH:$samba4srcdir/auth/credentials/tests" $SUBUNITRUN bindings
-plantestsuite "gensec.python" none PYTHONPATH="$PYTHONPATH:$samba4srcdir/auth/gensec/tests" $SUBUNITRUN bindings
-plantestsuite "registry.python" none PYTHONPATH="$PYTHONPATH:$samba4srcdir/lib/registry/tests/" $SUBUNITRUN bindings
+planpythontestsuite "gensec.python" none samba.tests.gensec
+planpythontestsuite "registry.python" none samba.tests.registry
 plantestsuite "tdb.python" none PYTHONPATH="$PYTHONPATH:../lib/tdb/python/tests" $SUBUNITRUN simple
-plantestsuite "auth.python" none PYTHONPATH="$PYTHONPATH:$samba4srcdir/auth/tests/" $SUBUNITRUN bindings
-plantestsuite "security.python" none PYTHONPATH="$PYTHONPATH:$samba4srcdir/libcli/security/tests" $SUBUNITRUN bindings
-plantestsuite "misc.python" none $SUBUNITRUN samba.tests.dcerpc.misc
-plantestsuite "param.python" none PYTHONPATH="$PYTHONPATH:$samba4srcdir/param/tests" $SUBUNITRUN bindings
+planpythontestsuite "auth.python" none samba.tests.auth
+planpythontestsuite "security.python" none samba.tests.security
+planpythontestsuite "misc.python" none samba.tests.dcerpc.misc
+planpythontestsuite "param.python" none samba.tests.param
 planpythontestsuite "upgrade.python" none samba.tests.upgrade
 planpythontestsuite "samba.python" none samba.tests
 planpythontestsuite "provision.python" none samba.tests.provision
@@ -517,7 +515,7 @@ planpythontestsuite "unixinfo.python" dc:local samba.tests.dcerpc.unix
 planpythontestsuite "rpc_talloc.python" none samba.tests.dcerpc.rpc_talloc
 planpythontestsuite "samdb.python" none samba.tests.samdb
 planpythontestsuite "shares.python" none samba.tests.shares
-plantestsuite "messaging.python" none PYTHONPATH="$PYTHONPATH:$samba4srcdir/lib/messaging/tests" $SUBUNITRUN bindings
+planpythontestsuite "messaging.python" none samba.tests.messaging
 plantestsuite "samba3sam.python" none PYTHONPATH="$PYTHONPATH:$samba4srcdir/dsdb/samdb/ldb_modules/tests" $SUBUNITRUN samba3sam
 planpythontestsuite "subunit.python" none subunit
 planpythontestsuite "rpcecho.python" dc:local samba.tests.dcerpc.rpcecho