summaryrefslogtreecommitdiff
path: root/source4/script/tests/test_swig.sh
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/script/tests/test_swig.sh
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/script/tests/test_swig.sh')
-rwxr-xr-xsource4/script/tests/test_swig.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/source4/script/tests/test_swig.sh b/source4/script/tests/test_swig.sh
new file mode 100755
index 0000000000..6b97ab4d33
--- /dev/null
+++ b/source4/script/tests/test_swig.sh
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+if [ $# -ne 0 ]; then
+ cat <<EOF
+Usage: test_swig.sh
+EOF
+ exit 1;
+fi
+
+incdir=`dirname $0`
+. $incdir/test_functions.sh
+
+failed=0
+
+export PYTHONPATH=scripting/swig:$PYTHONPATh
+
+scripting/swig/torture/torture_tdb.py || failed=`expr $failed + 1`
+
+testok $0 $failed