summaryrefslogtreecommitdiff
path: root/source4/torture/smbtorture.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-12-11 03:26:31 +0100
committerJelmer Vernooij <jelmer@samba.org>2010-12-11 04:16:13 +0100
commit35fbc7bbda5851f7172538f79fc79be201f1d521 (patch)
tree30449903f8f3288618986e3dadddd7a29f0ffe5f /source4/torture/smbtorture.c
parent68d97f8b492d1d075ed77a4bab7f178d10570106 (diff)
downloadsamba-35fbc7bbda5851f7172538f79fc79be201f1d521.tar.gz
s4-smbtorture: Make test names lowercase and dot-separated.
This is consistent with the test names used by selftest, should make the names less confusing and easier to integrate with other tools. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Dec 11 04:16:13 CET 2010 on sn-devel-104
Diffstat (limited to 'source4/torture/smbtorture.c')
-rw-r--r--source4/torture/smbtorture.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/source4/torture/smbtorture.c b/source4/torture/smbtorture.c
index dec97d22f62..4244bfbc906 100644
--- a/source4/torture/smbtorture.c
+++ b/source4/torture/smbtorture.c
@@ -54,7 +54,7 @@ static bool run_matching(struct torture_context *torture,
if (prefix == NULL)
name = talloc_strdup(torture, o->name);
else
- name = talloc_asprintf(torture, "%s-%s", prefix, o->name);
+ name = talloc_asprintf(torture, "%s.%s", prefix, o->name);
if (gen_fnmatch(expr, name) == 0) {
*matched = true;
reload_charcnv(torture->lp_ctx);
@@ -67,14 +67,14 @@ static bool run_matching(struct torture_context *torture,
}
for (t = suite->testcases; t; t = t->next) {
- char *name = talloc_asprintf(torture, "%s-%s", prefix, t->name);
+ char *name = talloc_asprintf(torture, "%s.%s", prefix, t->name);
if (gen_fnmatch(expr, name) == 0) {
*matched = true;
reload_charcnv(torture->lp_ctx);
ret &= torture_run_tcase_restricted(torture, t, restricted);
}
for (p = t->tests; p; p = p->next) {
- name = talloc_asprintf(torture, "%s-%s-%s", prefix, t->name, p->name);
+ 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);
@@ -211,7 +211,7 @@ static void print_structured_testsuite_list(void)
printf("\n ");
i = 0;
}
- i+=printf("%s-%s ", o->name, s->name);
+ i+=printf("%s.%s ", o->name, s->name);
}
for (t = o->testcases; t; t = t->next) {
@@ -219,7 +219,7 @@ static void print_structured_testsuite_list(void)
printf("\n ");
i = 0;
}
- i+=printf("%s-%s ", o->name, t->name);
+ i+=printf("%s.%s ", o->name, t->name);
}
if (i) printf("\n");
@@ -239,11 +239,11 @@ static void print_testsuite_list(void)
for (o = torture_root->children; o; o = o->next) {
for (s = o->children; s; s = s->next) {
- printf("%s-%s\n", o->name, s->name);
+ printf("%s.%s\n", o->name, s->name);
}
for (t = o->testcases; t; t = t->next) {
- printf("%s-%s\n", o->name, t->name);
+ printf("%s.%s\n", o->name, t->name);
}
}
}