r18421: support --target=samba3, I thought that was already supported
authorStefan Metzmacher <metze@samba.org>
Tue, 12 Sep 2006 07:35:04 +0000 (07:35 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:18:26 +0000 (14:18 -0500)
metze
(This used to be commit 47ccea11f31be878c5bdff4f6f4e5b7685a1c796)

source4/torture/smbtorture.c

index 3e834970a7fdb5e2c04f79887406c9e5efb31c04..5570e3999c1018f92ab72e0d03726375b3a783ef 100644 (file)
@@ -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");
        }