diff options
-rw-r--r-- | source4/torture/smbtorture.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source4/torture/smbtorture.c b/source4/torture/smbtorture.c index baa9afebb6..d86e8dfe48 100644 --- a/source4/torture/smbtorture.c +++ b/source4/torture/smbtorture.c @@ -44,6 +44,7 @@ static bool run_matching(struct torture_context *torture, bool ret = true; struct torture_suite *o; struct torture_tcase *t; + struct torture_test *p; for (o = suite->children; o; o = o->next) { char *name = NULL; @@ -71,6 +72,15 @@ static bool run_matching(struct torture_context *torture, torture->active_testname = name; ret &= torture_run_tcase(torture, t); } + for (p = t->tests; p; p = p->next) { + name = talloc_asprintf(torture, "%s-%s-%s", prefix, t->name, p->name); + if (gen_fnmatch(expr, name) == 0) { + *matched = true; + reload_charcnv(torture->lp_ctx); + torture->active_testname = name; + ret &= torture_run_test(torture, t, p); + } + } } return ret; |