summaryrefslogtreecommitdiff
path: root/source3/torture
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>2002-03-21 14:03:41 +0000
committerHerb Lewis <herb@samba.org>2002-03-21 14:03:41 +0000
commitaadc8a52fdea839ef8edb303c7c760b6ab963dc7 (patch)
tree5577f6263ad4b104c516649fa202bf6133c8ca48 /source3/torture
parent55058b074f9a063d74ce027176451c4021a97c5f (diff)
downloadsamba-aadc8a52fdea839ef8edb303c7c760b6ab963dc7.tar.gz
samba-aadc8a52fdea839ef8edb303c7c760b6ab963dc7.tar.bz2
samba-aadc8a52fdea839ef8edb303c7c760b6ab963dc7.zip
update usage message with other options. Add a -d debuglevel option
(This used to be commit 32d5dc824ab26c140feb8041314783caab622c65)
Diffstat (limited to 'source3/torture')
-rw-r--r--source3/torture/masktest.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/source3/torture/masktest.c b/source3/torture/masktest.c
index ee702196d0..7725bfe409 100644
--- a/source3/torture/masktest.c
+++ b/source3/torture/masktest.c
@@ -393,12 +393,15 @@ static void usage(void)
"Usage:\n\
masktest //server/share [options..]\n\
options:\n\
+ -d debuglevel\n\
-W workgroup\n\
-U user%%pass\n\
-s seed\n\
-M max protocol\n\
-f filechars (default %s)\n\
-m maskchars (default %s)\n\
+ -v verbose mode\n\
+ -E die on error\n\
-a show all tests\n\
\n\
This program tests wildcard matching between two servers. It generates\n\
@@ -417,6 +420,7 @@ static void usage(void)
struct cli_state *cli;
extern char *optarg;
extern int optind;
+ extern BOOL AllowDebugChange;
int opt;
char *p;
int seed;
@@ -425,6 +429,9 @@ static void usage(void)
dbf = x_stderr;
+ DEBUGLEVEL = 0;
+ AllowDebugChange = False;
+
if (argv[1][0] == '-' || argc < 2) {
usage();
exit(1);
@@ -448,8 +455,11 @@ static void usage(void)
seed = time(NULL);
- while ((opt = getopt(argc, argv, "U:s:hm:f:aoW:M:vE")) != EOF) {
+ while ((opt = getopt(argc, argv, "d:U:s:hm:f:aoW:M:vE")) != EOF) {
switch (opt) {
+ case 'd':
+ DEBUGLEVEL = atoi(optarg);
+ break;
case 'E':
die_on_error = 1;
break;