mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
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 aa29907327
)
This commit is contained in:
parent
0a1fefe539
commit
000a094318
@ -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<<EOF
|
||||
[domain_realm]
|
||||
.samba.example.com = SAMBA.EXAMPLE.COM
|
||||
EOF
|
||||
export KRB5_CONFIG
|
||||
|
||||
. `dirname $0`/mk-keyblobs.sh
|
||||
|
||||
@ -301,11 +292,7 @@ echo "REALM=$REALM"
|
||||
echo "DNSNAME=$DNSNAME"
|
||||
echo "BASEDN=$BASEDN"
|
||||
echo "PASSWORD=$PASSWORD"
|
||||
echo "AUTH=$AUTH"
|
||||
echo "SRCDIR=$SRCDIR"
|
||||
echo "ROOT=$ROOT"
|
||||
echo "SERVER=$SERVER"
|
||||
echo "NETBIOSNAME=$NETBIOSNAME"
|
||||
echo "PREFIX=$PREFIX"
|
||||
echo "SMBD_LOGLEVEL=$SMBD_LOGLEVEL"
|
||||
echo "LDAPDIR=$LDAPDIR"
|
||||
|
@ -52,9 +52,19 @@ export PKG_CONFIG_PATH
|
||||
|
||||
incdir=`dirname $ARG0`
|
||||
echo -n "PROVISIONING..."
|
||||
. $incdir/mktestsetup.sh $PREFIX >/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
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
if [ $# -lt 3 ]; then
|
||||
cat <<EOF
|
||||
Usage: test_ejs.sh DOMAIN USERNAME PASSWORD
|
||||
Usage: test_ejs.sh DOMAIN USERNAME PASSWORD [OPTIONS]
|
||||
EOF
|
||||
exit 1;
|
||||
fi
|
||||
@ -11,6 +11,8 @@ fi
|
||||
DOMAIN="$1"
|
||||
USERNAME="$2"
|
||||
PASSWORD="$3"
|
||||
shift 3
|
||||
CONFIGURATION="$*"
|
||||
|
||||
incdir=`dirname $0`
|
||||
. $incdir/test_functions.sh
|
||||
|
@ -18,13 +18,13 @@ incdir=`dirname $0`
|
||||
|
||||
p=ldap
|
||||
for options in "" "--option=socket:testnonblock=true" "-U$USERNAME%$PASSWORD --option=socket:testnonblock=true" "-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
|
||||
# see if we support ldaps
|
||||
if grep ENABLE_GNUTLS.1 include/config.h > /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
|
||||
|
@ -1,7 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
p=$1
|
||||
shift 1
|
||||
SERVER=$2
|
||||
shift 2
|
||||
options="$*"
|
||||
|
||||
check() {
|
||||
|
Loading…
Reference in New Issue
Block a user