summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-04-24 10:36:56 +0200
committerVolker Lendecke <vlendec@samba.org>2011-04-25 10:39:12 +0200
commit422b2fa0d064f2afeeec400223bb8a47deecc4a5 (patch)
tree4bda5641017306899889bb9fe4878d11fe06cf3e
parent39375de8354b676904e1fea097a68178acd987e4 (diff)
downloadsamba-422b2fa0d064f2afeeec400223bb8a47deecc4a5.tar.gz
samba-422b2fa0d064f2afeeec400223bb8a47deecc4a5.tar.bz2
samba-422b2fa0d064f2afeeec400223bb8a47deecc4a5.zip
s3: Run pthreadpooltest in make test
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Mon Apr 25 10:39:12 CEST 2011 on sn-devel-104
-rwxr-xr-xsource3/script/tests/test_pthreadpool.sh17
-rwxr-xr-xsource3/selftest/tests.py3
2 files changed, 20 insertions, 0 deletions
diff --git a/source3/script/tests/test_pthreadpool.sh b/source3/script/tests/test_pthreadpool.sh
new file mode 100755
index 0000000000..79e578effa
--- /dev/null
+++ b/source3/script/tests/test_pthreadpool.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+incdir=`dirname $0`/../../../testprogs/blackbox
+. $incdir/subunit.sh
+
+TESTPROG=$BINDIR/pthreadpooltest
+
+if [ ! -x $BINDIR/pthreadpooltest ] ; then
+ TESTPROG=/bin/true
+fi
+
+failed=0
+
+testit "pthreadpool" $VALGRIND $TESTPROG ||
+ failed=`expr $failed + 1`
+
+testok $0 $failed
diff --git a/source3/selftest/tests.py b/source3/selftest/tests.py
index f05e00537d..2e5eee1394 100755
--- a/source3/selftest/tests.py
+++ b/source3/selftest/tests.py
@@ -140,6 +140,9 @@ plantestsuite("samba3.blackbox.net.local.registry.roundtrip", "s3dc:local", [os.
plantestsuite("samba3.blackbox.testparm", "s3dc:local", [os.path.join(samba3srcdir, "script/tests/test_testparm_s3.sh"),
"$LOCAL_PATH"])
+plantestsuite(
+ "samba3.pthreadpool", "s3dc",
+ [os.path.join(samba3srcdir, "script/tests/test_pthreadpool.sh")])
#smbtorture4 tests