summaryrefslogtreecommitdiff
path: root/source4/scripting
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2006-03-30 04:39:37 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:59:20 -0500
commit86971ff3b930a93de55aae00fe66f3d1d10dbcb4 (patch)
tree6f327b2c659ca4b8c277816ad514caf671b0db89 /source4/scripting
parented3fc628713e1f9552b523c9aec9bd8993e0b771 (diff)
downloadsamba-86971ff3b930a93de55aae00fe66f3d1d10dbcb4.tar.gz
samba-86971ff3b930a93de55aae00fe66f3d1d10dbcb4.tar.bz2
samba-86971ff3b930a93de55aae00fe66f3d1d10dbcb4.zip
r14798: Get swig building again (by commenting out dcerpc stuff for now).
Add the start of a test framework for swigged functionality. (This used to be commit 3dfd0959f78518c021417f3f1158c51d70a1e88c)
Diffstat (limited to 'source4/scripting')
-rw-r--r--source4/scripting/config.mk9
-rwxr-xr-xsource4/scripting/swig/torture/torture_tdb.py10
2 files changed, 15 insertions, 4 deletions
diff --git a/source4/scripting/config.mk b/source4/scripting/config.mk
index c169680507..bbca5034eb 100644
--- a/source4/scripting/config.mk
+++ b/source4/scripting/config.mk
@@ -22,14 +22,15 @@ REQUIRED_SUBSYSTEMS = LIBCLI NDR_MISC LIBSAMBA-UTIL LIBSAMBA-CONFIG RPC_NDR_SAMR
#######################
# Swig extensions
-swig: scripting/swig/_tdb.so scripting/swig/_ldb.so scripting/swig/_dcerpc.so
+swig: scripting/swig/_tdb.so scripting/swig/_ldb.so
scripting/swig/tdb_wrap.c: scripting/swig/tdb.i
swig -python scripting/swig/tdb.i
-scripting/swig/_tdb.so: scripting/swig/tdb_wrap.o $(LIBRARY_swig_tdb_DEPEND_LIST)
- $(SHLD) $(SHLD_FLAGS) -o scripting/swig/_tdb.so scripting/swig/tdb_wrap.o \
- $(LIBRARY_swig_tdb_LINK_LIST) $(LIBRARY_swig_tdb_LINK_FLAGS)
+scripting/swig/_tdb.so: scripting/swig/tdb_wrap.o bin/subsystems/LIBRARY_LIBTDB.o
+ $(SHLD) $(SHLD_FLAGS) -o scripting/swig/_tdb.so \
+ scripting/swig/tdb_wrap.o \
+ bin/subsystems/LIBRARY_LIBTDB.o
scripting/swig/ldb_wrap.c: scripting/swig/ldb.i
swig -python scripting/swig/ldb.i
diff --git a/source4/scripting/swig/torture/torture_tdb.py b/source4/scripting/swig/torture/torture_tdb.py
new file mode 100755
index 0000000000..4c44096811
--- /dev/null
+++ b/source4/scripting/swig/torture/torture_tdb.py
@@ -0,0 +1,10 @@
+#!/usr/bin/python
+
+import sys, tdb
+from os import *
+
+t = tdb.open('foo.tdb', 0, 0, O_RDWR | O_CREAT, 0600)
+tdb.close(t)
+
+unlink('foo.tdb')
+