diff options
author | Günther Deschner <gd@samba.org> | 2010-03-17 22:55:00 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2010-03-17 22:59:20 +0100 |
commit | 3efaf5e6ba203df23151665baac821a7c09754d6 (patch) | |
tree | c045367a6cf31054e6eb4e35d37a42183c20df6f /selftest/target | |
parent | 453fed4efd08fccd2979d0faf31a67facf133778 (diff) | |
download | samba-3efaf5e6ba203df23151665baac821a7c09754d6.tar.gz samba-3efaf5e6ba203df23151665baac821a7c09754d6.tar.bz2 samba-3efaf5e6ba203df23151665baac821a7c09754d6.zip |
s3-selftest: setup initial eventlog infrastructure.
Guenther
Diffstat (limited to 'selftest/target')
-rw-r--r-- | selftest/target/Samba3.pm | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/selftest/target/Samba3.pm b/selftest/target/Samba3.pm index c3f696a99d..cc7713d18e 100644 --- a/selftest/target/Samba3.pm +++ b/selftest/target/Samba3.pm @@ -412,6 +412,9 @@ sub provision($$$$$$) my $lockdir="$prefix_abs/lockdir"; push(@dirs,$lockdir); + my $eventlogdir="$prefix_abs/lockdir/eventlog"; + push(@dirs,$eventlogdir); + my $logdir="$prefix_abs/logs"; push(@dirs,$logdir); @@ -438,6 +441,8 @@ sub provision($$$$$$) my $mod_printer_pl = "$ENV{PERL} $RealBin/../source3/script/tests/printing/modprinter.pl"; + my @eventlog_list = ("dns server", "application"); + open(CONF, ">$conffile") or die("Unable to open $conffile"); print CONF " [global] @@ -474,6 +479,8 @@ sub provision($$$$$$) addprinter command = $mod_printer_pl -a -s $conffile -- deleteprinter command = $mod_printer_pl -d -s $conffile -- + eventlog list = application \"dns server\" + kernel oplocks = no kernel change notify = no @@ -557,6 +564,12 @@ $unix_name-group:x:$unix_gids[0]: "; close(GROUP); + foreach my $evlog (@eventlog_list) { + my $evlogtdb = "$eventlogdir/$evlog.tdb"; + open(EVENTLOG, ">$evlogtdb") or die("Unable to open $evlogtdb"); + close(EVENTLOG); + } + $ENV{NSS_WRAPPER_PASSWD} = $nss_wrapper_passwd; $ENV{NSS_WRAPPER_GROUP} = $nss_wrapper_group; |