diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-07-12 13:12:50 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-07-12 14:58:37 +0200 |
commit | 1c5390e39fbc2090e2eb4ff8846519dac08854b4 (patch) | |
tree | 8d93bb6cb077cc290c6c283e1a8773960dd253d3 /selftest/selftest.pl | |
parent | c0eb56d1599fee0f0f5cf757b5381f56e04b74c1 (diff) | |
download | samba-1c5390e39fbc2090e2eb4ff8846519dac08854b4.tar.gz |
selftest/Samba4: setup "state dir" and "cache dir"
metze
Diffstat (limited to 'selftest/selftest.pl')
-rwxr-xr-x | selftest/selftest.pl | 14 |
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\% |