summaryrefslogtreecommitdiff
path: root/selftest/selftest.pl
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-07-12 13:12:50 +0200
committerStefan Metzmacher <metze@samba.org>2011-07-12 14:58:37 +0200
commit1c5390e39fbc2090e2eb4ff8846519dac08854b4 (patch)
tree8d93bb6cb077cc290c6c283e1a8773960dd253d3 /selftest/selftest.pl
parentc0eb56d1599fee0f0f5cf757b5381f56e04b74c1 (diff)
downloadsamba-1c5390e39fbc2090e2eb4ff8846519dac08854b4.tar.gz
selftest/Samba4: setup "state dir" and "cache dir"
metze
Diffstat (limited to 'selftest/selftest.pl')
-rwxr-xr-xselftest/selftest.pl14
1 files changed, 14 insertions, 0 deletions
diff --git a/selftest/selftest.pl b/selftest/selftest.pl
index d72c409fa26..808be222bb1 100755
--- a/selftest/selftest.pl
+++ b/selftest/selftest.pl
@@ -597,6 +597,18 @@ sub write_clientconf($$$)
mkdir("$clientdir/lockdir", 0777);
}
+ if ( -d "$clientdir/statedir" ) {
+ unlink <$clientdir/statedir/*>;
+ } else {
+ mkdir("$clientdir/statedir", 0777);
+ }
+
+ if ( -d "$clientdir/cachedir" ) {
+ unlink <$clientdir/cachedir/*>;
+ } else {
+ mkdir("$clientdir/cachedir", 0777);
+ }
+
# this is ugly, but the ncalrpcdir needs exactly 0755
# otherwise tests fail.
my $mask = umask;
@@ -627,6 +639,8 @@ sub write_clientconf($$$)
print CF "
private dir = $clientdir/private
lock dir = $clientdir/lockdir
+ state dir = $clientdir/statedir
+ cache dir = $clientdir/cachedir
ncalrpc dir = $clientdir/ncalrpcdir
name resolve order = file bcast
panic action = $RealBin/gdb_backtrace \%PID\%