summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorGary Lockyer <gary@catalyst.net.nz>2018-09-18 08:37:02 +1200
committerAndrew Bartlett <abartlet@samba.org>2018-11-23 08:25:19 +0100
commit5fa134dc83e0fae21c1b20d722d6040f49a152e4 (patch)
tree5ed44fc5357ff3a2477decc54edb6c52f6503c2c /source4
parent6b136a8184d6f703405d0f53613b061af3601725 (diff)
downloadsamba-5fa134dc83e0fae21c1b20d722d6040f49a152e4.tar.gz
source4 smbd test: prefork process restart
Add tests for the restarting of failed/terminated process, by the pre-fork process model. Signed-off-by: Gary Lockyer <gary@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4')
-rwxr-xr-xsource4/selftest/tests.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/source4/selftest/tests.py b/source4/selftest/tests.py
index c4b7d18444c..6a1e1448ef9 100755
--- a/source4/selftest/tests.py
+++ b/source4/selftest/tests.py
@@ -1232,3 +1232,13 @@ plantestsuite("samba4.dsdb.samdb.ldb_modules.group_audit", "none",
[os.path.join(bindir(), "test_group_audit")])
plantestsuite("samba4.dsdb.samdb.ldb_modules.group_audit.errors", "none",
[os.path.join(bindir(), "test_group_audit_errors")])
+
+# process restart and limit tests, these break the environment so need to run
+# in their own specific environment
+planoldpythontestsuite("preforkrestartdc:local",
+ "samba.tests.prefork_restart",
+ extra_path=[
+ os.path.join(srcdir(), 'python/samba/tests')],
+ extra_args=['-U"$USERNAME%$PASSWORD"'],
+ name="samba.tests.prefork_restart",
+ py3_compatible=True)