static char *filechars = "abcdefghijklm.";
static int verbose;
static int die_on_error;
+static int NumLoops = 0;
/* a test fn for LANMAN mask support */
int ms_fnmatch_lanman_core(char *pattern, char *string)
if (strspn(file+l, ".") == strlen(file+l)) continue;
testpair(cli, mask, file);
+ if (NumLoops && (--NumLoops == 0))
+ break;
}
finished:
masktest //server/share [options..]\n\
options:\n\
-d debuglevel\n\
+ -n numloops\n\
-W workgroup\n\
-U user%%pass\n\
-s seed\n\
seed = time(NULL);
- while ((opt = getopt(argc, argv, "d:U:s:hm:f:aoW:M:vE")) != EOF) {
+ while ((opt = getopt(argc, argv, "n:d:U:s:hm:f:aoW:M:vE")) != EOF) {
switch (opt) {
+ case 'n':
+ NumLoops = atoi(optarg);
+ break;
case 'd':
DEBUGLEVEL = atoi(optarg);
break;