summaryrefslogtreecommitdiff
path: root/source4/selftest/tests.sh
diff options
context:
space:
mode:
Diffstat (limited to 'source4/selftest/tests.sh')
-rwxr-xr-xsource4/selftest/tests.sh10
1 files changed, 7 insertions, 3 deletions
diff --git a/source4/selftest/tests.sh b/source4/selftest/tests.sh
index 36e3bbe364..39e6cff274 100755
--- a/source4/selftest/tests.sh
+++ b/source4/selftest/tests.sh
@@ -23,6 +23,11 @@ then
PERL=perl
fi
+if [ ! -n "$PYTHON" ]
+then
+ PYTHON=python
+fi
+
plantest() {
name=$1
env=$2
@@ -121,7 +126,7 @@ all_tests="$ncalrpc_tests $ncacn_np_tests $ncacn_ip_tcp_tests $slow_ncalrpc_test
# Make sure all tests get run
for t in `$smb4torture --list | grep "^RPC-"`
do
- echo $all_tests | grep $t > /dev/null
+ echo $all_tests | grep "$t" > /dev/null
if [ $? -ne 0 ]
then
auto_rpc_tests="$auto_rpc_tests $t"
@@ -169,7 +174,7 @@ done
# Tests for the NET API
-net=`$smb4torture --list | grep ^NET-`
+net=`$smb4torture --list | grep "^NET-"`
for t in $net; do
plansmbtorturetest "$t" dc "\$SERVER[$VALIDATE]" -U"\$USERNAME"%"\$PASSWORD" -W "\$DOMAIN" "$*"
@@ -394,7 +399,6 @@ then
plantest "nss.test using winbind" member $VALGRIND $nsstest4 $samba4bindir/shared/libnss_winbind.so
fi
-PYTHON=/usr/bin/python
SUBUNITRUN="$VALGRIND $PYTHON $samba4srcdir/scripting/bin/subunitrun"
plantest "ldb.python" none PYTHONPATH="$PYTHONPATH:$samba4srcdir/lib/ldb/tests/python/" $SUBUNITRUN api
plantest "credentials.python" none PYTHONPATH="$PYTHONPATH:$samba4srcdir/auth/credentials/tests" $SUBUNITRUN bindings