From 000a094318989eb5a221515e7870e71f28e36133 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 5 Mar 2007 13:51:05 +0000 Subject: r21700: Run mktestsetup as an external program. This guarantees that it can be used for other selftest implementations (in particular the perl one I've been working on). (This used to be commit aa29907327a91a64c769b1f2712f553e13964418) --- source4/script/tests/mktestsetup.sh | 15 +-------------- source4/script/tests/selftest.sh | 12 +++++++++++- source4/script/tests/test_ejs.sh | 4 +++- source4/script/tests/test_ldap.sh | 4 ++-- 4 files changed, 17 insertions(+), 18 deletions(-) (limited to 'source4/script/tests') diff --git a/source4/script/tests/mktestsetup.sh b/source4/script/tests/mktestsetup.sh index 4c9a828315..a92def64fd 100755 --- a/source4/script/tests/mktestsetup.sh +++ b/source4/script/tests/mktestsetup.sh @@ -1,4 +1,5 @@ #!/bin/sh +# Build a test environment for running Samba if [ $# -lt 1 ] then @@ -39,11 +40,9 @@ srcdir=`dirname $0`/../.. mkdir -p $PREFIX || exit $? cd $PREFIX PREFIX_ABS=`pwd` -export PREFIX_ABS cd $oldpwd TEST_DATA_PREFIX=$PREFIX_ABS -export TEST_DATA_PREFIX TMPDIR=$PREFIX_ABS/tmp ETCDIR=$PREFIX_ABS/etc @@ -58,13 +57,6 @@ WINBINDD_SOCKET_DIR=$PREFIX_ABS/winbind_socket CONFIGURATION="--configfile=$CONFFILE" LDAPDIR=$PREFIX_ABS/ldap -export CONFIGURATION -export CONFFILE -export PIDDIR -export AUTH -export SERVER -export NETBIOSNAME - rm -rf $PREFIX/* mkdir -p $PRIVATEDIR $ETCDIR $PIDDIR $NCALRPCDIR $LOCKDIR $TMPDIR $LDAPDIR/db $LDAPDIR/db/bdb-logs $LDAPDIR/db/tmp @@ -239,7 +231,6 @@ cat >$KRB5_CONFIG</dev/null || exit 1 +eval `$incdir/mktestsetup.sh $PREFIX || exit 1` echo "DONE" +export KRB5_CONFIG +export PREFIX_ABS +export TEST_DATA_PREFIX +export CONFIGURATION +export CONFFILE +export PIDDIR +export AUTH +export SERVER +export NETBIOSNAME + PATH=bin:$PATH export PATH diff --git a/source4/script/tests/test_ejs.sh b/source4/script/tests/test_ejs.sh index f08fdec3ba..6cd727e3e3 100755 --- a/source4/script/tests/test_ejs.sh +++ b/source4/script/tests/test_ejs.sh @@ -3,7 +3,7 @@ if [ $# -lt 3 ]; then cat < /dev/null; then p=ldaps for options in "" "-U$USERNAME%$PASSWORD"; do - testit "TESTING PROTOCOL $p with options $options" ../testprogs/blackbox/test_ldb.sh $p $options + testit "TESTING PROTOCOL $p with options $options" ../testprogs/blackbox/test_ldb.sh $p $SERVER $options done fi for t in LDAP-CLDAP LDAP-BASIC LDAP-SCHEMA LDAP-UPTODATENESS -- cgit