summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-05-25 16:47:12 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-05-25 16:47:12 +0200
commit2067fc60c50c1ca527faccdaa1fff56eec2d4c08 (patch)
treea1e72b192cc54c462c6e63654ceb444c9cddc85c /source4
parent48433e4351701307e030ac8d596cc00a0ce969e3 (diff)
downloadsamba-2067fc60c50c1ca527faccdaa1fff56eec2d4c08.tar.gz
samba-2067fc60c50c1ca527faccdaa1fff56eec2d4c08.tar.bz2
samba-2067fc60c50c1ca527faccdaa1fff56eec2d4c08.zip
Add tests for irpc python bindings.
(This used to be commit 1ce0632afeb94a69bf286706b3b1f9f4be7ea91f)
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/messaging/tests/bindings.py25
-rwxr-xr-xsource4/selftest/samba4_tests.sh1
2 files changed, 26 insertions, 0 deletions
diff --git a/source4/lib/messaging/tests/bindings.py b/source4/lib/messaging/tests/bindings.py
new file mode 100644
index 0000000000..ffb4dae326
--- /dev/null
+++ b/source4/lib/messaging/tests/bindings.py
@@ -0,0 +1,25 @@
+#!/usr/bin/python
+# -*- coding: utf-8 -*-
+
+# 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
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
+from samba.irpc import Messaging
+from unittest import TestCase
+
+class MessagingTests(TestCase):
+ pass
diff --git a/source4/selftest/samba4_tests.sh b/source4/selftest/samba4_tests.sh
index 2076ed9c65..11d909a2bc 100755
--- a/source4/selftest/samba4_tests.sh
+++ b/source4/selftest/samba4_tests.sh
@@ -344,6 +344,7 @@ plantest "dcerpc.bare.python" dc $SUBUNITRUN samba.tests.dcerpc.bare
plantest "samdb.python" dc $SUBUNITRUN samba.tests.samdb
plantest "unixinfo.python" dc $SUBUNITRUN samba.tests.dcerpc.unix
plantest "events.python" none PYTHONPATH="$PYTHONPATH:lib/events" $SUBUNITRUN tests
+plantest "messaging.python" none PYTHONPATH="$PYTHONPATH:lib/messaging/tests" $SUBUNITRUN bindings
plantest "samba3sam.python" none PYTHONPATH="$PYTHONPATH:dsdb/samdb/ldb_modules/tests" $SUBUNITRUN samba3sam
plantest "rpcecho.python" dc $SUBUNITRUN samba.tests.dcerpc.rpcecho
plantest "winreg.python" dc $SUBUNITRUN -U\$USERNAME%\$PASSWORD samba.tests.dcerpc.registry