diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-04-09 00:53:05 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:49:54 -0500 |
commit | 3ff1625f1f48e7d3107786c7f8fa7b1a43196e5d (patch) | |
tree | c1c377f4f93ee1e11c01e235f69cb6619e29e779 /source4/script/tests/selftest.pl | |
parent | 51fd15608173421258cc474063cf49f5b72e5d56 (diff) | |
download | samba-3ff1625f1f48e7d3107786c7f8fa7b1a43196e5d.tar.gz samba-3ff1625f1f48e7d3107786c7f8fa7b1a43196e5d.tar.bz2 samba-3ff1625f1f48e7d3107786c7f8fa7b1a43196e5d.zip |
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)
Diffstat (limited to 'source4/script/tests/selftest.pl')
-rwxr-xr-x | source4/script/tests/selftest.pl | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/source4/script/tests/selftest.pl b/source4/script/tests/selftest.pl index caba948c9b..1b04e494ea 100755 --- a/source4/script/tests/selftest.pl +++ b/source4/script/tests/selftest.pl @@ -443,9 +443,39 @@ my $interfaces = join(',', ("127.0.0.6/8", "127.0.0.10/8", "127.0.0.11/8")); + + +my $conffile = "$prefix/client.conf"; +open(CF, ">$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"); |