summaryrefslogtreecommitdiff
path: root/selftest/target
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-02-10 17:01:51 +0100
committerStefan Metzmacher <metze@samba.org>2009-02-10 18:07:12 +0100
commitcfb9cbdf686073957c16a6780448b3458990498d (patch)
tree5c077a9b5158fb57c9806ec6117ef2a57a0429e0 /selftest/target
parentda12481df61b959b5d8b5114e1c0c88cb3baa405 (diff)
downloadsamba-cfb9cbdf686073957c16a6780448b3458990498d.tar.gz
samba-cfb9cbdf686073957c16a6780448b3458990498d.tar.bz2
samba-cfb9cbdf686073957c16a6780448b3458990498d.zip
selftest/Samba4: split out share configurations of provision_raw*()
metze
Diffstat (limited to 'selftest/target')
-rw-r--r--selftest/target/Samba4.pm124
1 files changed, 67 insertions, 57 deletions
diff --git a/selftest/target/Samba4.pm b/selftest/target/Samba4.pm
index dc847cdbae..b45f32f4cf 100644
--- a/selftest/target/Samba4.pm
+++ b/selftest/target/Samba4.pm
@@ -544,7 +544,6 @@ sub provision_raw_prepare($$$$$$)
$ctx->{unix_gids_str} = $);
@{$ctx->{unix_gids}} = split(" ", $ctx->{unix_gids_str});
- $ctx->{tmpdir} = "$prefix_abs/tmp";
$ctx->{etcdir} = "$prefix_abs/etc";
$ctx->{piddir} = "$prefix_abs/pid";
$ctx->{smb_conf} = "$ctx->{etcdir}/smb.conf";
@@ -573,9 +572,7 @@ sub provision_raw_prepare($$$$$$)
push(@{$ctx->{directories}}, $ctx->{ncalrpcdir});
push(@{$ctx->{directories}}, $ctx->{lockdir});
- push(@{$ctx->{directories}}, $ctx->{tmpdir});
- push(@{$ctx->{directories}}, "$ctx->{tmpdir}/test1");
- push(@{$ctx->{directories}}, "$ctx->{tmpdir}/test2");
+ $ctx->{smb_conf_extra_options} = "";
return $ctx;
}
@@ -613,8 +610,6 @@ sub provision_raw_run($$)
panic action = $RealBin/gdb_backtrace \%PID% \%PROG%
wins support = yes
server role = $ctx->{server_role}
- max xmit = 32K
- server max protocol = SMB2
notify:inotify = false
ldb:nosync = true
#We don't want to pass our self-tests if the PAC code is wrong
@@ -622,57 +617,9 @@ sub provision_raw_run($$)
log level = $ctx->{server_loglevel}
lanman auth = Yes
-[tmp]
- path = $ctx->{tmpdir}
- read only = no
- ntvfs handler = posix
- posix:sharedelay = 100000
- posix:eadb = $ctx->{lockdir}/eadb.tdb
- posix:oplocktimeout = 3
- posix:writetimeupdatedelay = 500000
-
-[test1]
- path = $ctx->{tmpdir}/test1
- read only = no
- ntvfs handler = posix
- posix:sharedelay = 100000
- posix:eadb = $ctx->{lockdir}/eadb.tdb
- posix:oplocktimeout = 3
- posix:writetimeupdatedelay = 500000
-
-[test2]
- path = $ctx->{tmpdir}/test2
- read only = no
- ntvfs handler = posix
- posix:sharedelay = 100000
- posix:eadb = $ctx->{lockdir}/eadb.tdb
- posix:oplocktimeout = 3
- posix:writetimeupdatedelay = 500000
-
-[cifs]
- read only = no
- ntvfs handler = cifs
- cifs:server = $ctx->{netbiosname}
- cifs:share = tmp
-#There is no username specified here, instead the client is expected
-#to log in with kerberos, and the serverwill use delegated credentials.
-
-[simple]
- path = $ctx->{tmpdir}
- read only = no
- ntvfs handler = simple
-
-[sysvol]
- path = $ctx->{lockdir}/sysvol
- read only = yes
-
-[netlogon]
- path = $ctx->{lockdir}/sysvol/$ctx->{dnsname}/scripts
- read only = no
-
-[cifsposix]
- copy = simple
- ntvfs handler = cifsposix
+ # Begin extra options
+ $ctx->{smb_conf_extra_options}
+ # End extra options
";
close(CONFFILE);
@@ -845,6 +792,69 @@ sub provision($$$$$$)
$netbiosname, $netbiosalias,
$swiface, $password);
+ $ctx->{tmpdir} = "$ctx->{prefix_abs}/tmp";
+ push(@{$ctx->{directories}}, "$ctx->{tmpdir}");
+ push(@{$ctx->{directories}}, "$ctx->{tmpdir}/test1");
+ push(@{$ctx->{directories}}, "$ctx->{tmpdir}/test2");
+
+ $ctx->{smb_conf_extra_options} = "
+
+ max xmit = 32K
+ server max protocol = SMB2
+
+[tmp]
+ path = $ctx->{tmpdir}
+ read only = no
+ ntvfs handler = posix
+ posix:sharedelay = 100000
+ posix:eadb = $ctx->{lockdir}/eadb.tdb
+ posix:oplocktimeout = 3
+ posix:writetimeupdatedelay = 500000
+
+[test1]
+ path = $ctx->{tmpdir}/test1
+ read only = no
+ ntvfs handler = posix
+ posix:sharedelay = 100000
+ posix:eadb = $ctx->{lockdir}/eadb.tdb
+ posix:oplocktimeout = 3
+ posix:writetimeupdatedelay = 500000
+
+[test2]
+ path = $ctx->{tmpdir}/test2
+ read only = no
+ ntvfs handler = posix
+ posix:sharedelay = 100000
+ posix:eadb = $ctx->{lockdir}/eadb.tdb
+ posix:oplocktimeout = 3
+ posix:writetimeupdatedelay = 500000
+
+[cifs]
+ read only = no
+ ntvfs handler = cifs
+ cifs:server = $ctx->{netbiosname}
+ cifs:share = tmp
+#There is no username specified here, instead the client is expected
+#to log in with kerberos, and the serverwill use delegated credentials.
+
+[simple]
+ path = $ctx->{tmpdir}
+ read only = no
+ ntvfs handler = simple
+
+[sysvol]
+ path = $ctx->{lockdir}/sysvol
+ read only = yes
+
+[netlogon]
+ path = $ctx->{lockdir}/sysvol/$ctx->{dnsname}/scripts
+ read only = no
+
+[cifsposix]
+ copy = simple
+ ntvfs handler = cifsposix
+";
+
my $ret = $self->provision_raw_run($ctx);
return $ret;