From: Stefan Metzmacher Date: Mon, 4 Mar 2024 14:27:24 +0000 (+0100) Subject: s3:torture: add '-T 'option=value' this is similar to '--option='=value' X-Git-Tag: tdb-1.4.11~937 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09647d1dc96690e7b52d4f37b6b4fc835a140817;p=thirdparty%2Fsamba.git s3:torture: add '-T 'option=value' this is similar to '--option='=value' Signed-off-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett --- diff --git a/source3/torture/torture.c b/source3/torture/torture.c index f036e0311e2..240934f8263 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -16294,6 +16294,7 @@ static void usage(void) printf("\t-b unclist_filename specify multiple shares for multiple connections\n"); printf("\t-f filename filename to test\n"); printf("\t-e encrypt\n"); + printf("\t-T 'OPTION=VALUE' smb.conf option line\n"); printf("\n\n"); printf("tests are:"); @@ -16380,7 +16381,7 @@ static void usage(void) fstrcpy(workgroup, lp_workgroup()); - while ((opt = getopt(argc, argv, "p:hW:U:n:N:O:o:m:Ll:d:Aec:ks:b:B:f:")) + while ((opt = getopt(argc, argv, "p:hW:U:n:N:O:o:m:Ll:d:Aec:ks:b:B:f:T:")) != EOF) { switch (opt) { case 'p': @@ -16453,6 +16454,9 @@ static void usage(void) case 'f': test_filename = SMB_STRDUP(optarg); break; + case 'T': + lpcfg_set_option(lp_ctx, optarg); + break; default: printf("Unknown option %c (%d)\n", (char)opt, opt); usage();