summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-09-12 07:35:04 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:18:26 -0500
commit5addf852d25cea23ee9fe8f308bbe08244b2c344 (patch)
tree568b052941fedea920189549e805a3d2ca733dfe /source4/torture
parent26e9619c1791c1fef67926815ac0e8fec03e8e37 (diff)
downloadsamba-5addf852d25cea23ee9fe8f308bbe08244b2c344.tar.gz
samba-5addf852d25cea23ee9fe8f308bbe08244b2c344.tar.bz2
samba-5addf852d25cea23ee9fe8f308bbe08244b2c344.zip
r18421: support --target=samba3, I thought that was already supported
metze (This used to be commit 47ccea11f31be878c5bdff4f6f4e5b7685a1c796)
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/smbtorture.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/torture/smbtorture.c b/source4/torture/smbtorture.c
index 3e834970a7..5570e3999c 100644
--- a/source4/torture/smbtorture.c
+++ b/source4/torture/smbtorture.c
@@ -399,7 +399,7 @@ const static struct torture_ui_ops quiet_ui_ops = {
{"parse-dns", 'D', POPT_ARG_STRING, NULL, OPT_DNS, "parse-dns", NULL},
{"dangerous", 'X', POPT_ARG_NONE, NULL, OPT_DANGEROUS,
"run dangerous tests (eg. wiping out password database)", NULL},
- {"target", 'T', POPT_ARG_STRING, &target, 0, "samba4|other", NULL},
+ {"target", 'T', POPT_ARG_STRING, &target, 0, "samba3|samba4|other", NULL},
{"async", 'a', POPT_ARG_NONE, NULL, OPT_ASYNC,
"run async tests", NULL},
{"num-async", 0, POPT_ARG_INT, &torture_numasync, 0,
@@ -489,7 +489,9 @@ const static struct torture_ui_ops quiet_ui_ops = {
exit(1);
}
- if (!strcmp(target, "samba4")) {
+ if (strcmp(target, "samba3") == 0) {
+ lp_set_cmdline("target:samba3", "true");
+ } else if (strcmp(target, "samba4") == 0) {
lp_set_cmdline("target:samba4", "true");
}