From 3ff1625f1f48e7d3107786c7f8fa7b1a43196e5d Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 9 Apr 2007 00:53:05 +0000 Subject: r22134: Create different smb.conf file for the client side. This should make use with Samba 3 or windows easier as well as environments. (This used to be commit a32cdc06c39b07fbc7a3015ef059cc9143fb6e20) --- source4/script/tests/mktestdc.sh | 13 ++----------- source4/script/tests/selftest.pl | 32 +++++++++++++++++++++++++++++++- 2 files changed, 33 insertions(+), 12 deletions(-) (limited to 'source4/script/tests') diff --git a/source4/script/tests/mktestdc.sh b/source4/script/tests/mktestdc.sh index 3c5cc58353..ee4a99c8a3 100755 --- a/source4/script/tests/mktestdc.sh +++ b/source4/script/tests/mktestdc.sh @@ -43,8 +43,6 @@ cd $PREFIX PREFIX_ABS=`pwd` cd $oldpwd -TEST_DATA_PREFIX=$PREFIX_ABS - TMPDIR=$PREFIX_ABS/tmp ETCDIR=$PREFIX_ABS/etc PIDDIR=$PREFIX_ABS/pid @@ -61,15 +59,8 @@ LDAPDIR=$PREFIX_ABS/ldap rm -rf $PREFIX/* mkdir -p $PRIVATEDIR $ETCDIR $PIDDIR $NCALRPCDIR $LOCKDIR $TMPDIR $LDAPDIR/db $LDAPDIR/db/bdb-logs $LDAPDIR/db/tmp -if [ -z "$VALGRIND" ]; then - nativeiconv="true" -else - nativeiconv="false" -fi - cat >$CONFFILE<$CONFFILE<$conffile"); +print CF "[global]\n"; +if (defined($ENV{VALGRIND})) { + print CF "iconv:native = true\n"; +} else { + print CF "iconv:native = false\n"; +} +print CF " + workgroup = $testenv_vars->{DOMAIN} + realm = $testenv_vars->{REALM} + ncalrpc dir = $testenv_vars->{NCALRPCDIR} + js include = $srcdir/scripting/libjs + winbindd socket directory = $testenv_vars->{WINBINDD_SOCKET_DIR} + name resolve order = bcast + interfaces = 127.0.0.1/8 + panic action = $srcdir/script/gdb_backtrace \%PID\% \%PROG\% + max xmit = 32K + notify:inotify = false + ldb:nosync = true + system:anonymous = true +#We don't want to pass our self-tests if the PAC code is wrong + torture:basedir = st + gensec:require_pac = true + pid directory = $testenv_vars->{PIDDIR} +"; +close(CF); + my @torture_options = (); push (@torture_options, "--option=interfaces=$interfaces"); -push (@torture_options, $testenv_vars->{CONFIGURATION}); +push (@torture_options, "--configfile=$conffile"); # ensure any one smbtorture call doesn't run too long push (@torture_options, "--maximum-runtime=$torture_maxtime"); push (@torture_options, "--target=$opt_target"); -- cgit