summaryrefslogtreecommitdiff
path: root/lib/util/tests
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 /lib/util/tests
parent68d97f8b492d1d075ed77a4bab7f178d10570106 (diff)
downloadsamba-35fbc7bbda5851f7172538f79fc79be201f1d521.tar.gz
samba-35fbc7bbda5851f7172538f79fc79be201f1d521.tar.bz2
samba-35fbc7bbda5851f7172538f79fc79be201f1d521.zip
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 'lib/util/tests')
-rw-r--r--lib/util/tests/asn1_tests.c2
-rw-r--r--lib/util/tests/data_blob.c2
-rw-r--r--lib/util/tests/dlinklist.c2
-rw-r--r--lib/util/tests/file.c5
-rw-r--r--lib/util/tests/genrand.c2
-rw-r--r--lib/util/tests/idtree.c2
-rw-r--r--lib/util/tests/parmlist.c2
-rw-r--r--lib/util/tests/str.c2
-rw-r--r--lib/util/tests/strlist.c2
-rw-r--r--lib/util/tests/time.c2
10 files changed, 11 insertions, 12 deletions
diff --git a/lib/util/tests/asn1_tests.c b/lib/util/tests/asn1_tests.c
index 97f7756590..5cc514616b 100644
--- a/lib/util/tests/asn1_tests.c
+++ b/lib/util/tests/asn1_tests.c
@@ -264,7 +264,7 @@ static bool test_ber_read_partial_OID_String(struct torture_context *tctx)
/* LOCAL-ASN1 test suite creation */
struct torture_suite *torture_local_util_asn1(TALLOC_CTX *mem_ctx)
{
- struct torture_suite *suite = torture_suite_create(mem_ctx, "ASN1");
+ struct torture_suite *suite = torture_suite_create(mem_ctx, "asn1");
torture_suite_add_simple_test(suite, "ber_write_OID_String",
test_ber_write_OID_String);
diff --git a/lib/util/tests/data_blob.c b/lib/util/tests/data_blob.c
index 53330a4afd..bdccef2ce8 100644
--- a/lib/util/tests/data_blob.c
+++ b/lib/util/tests/data_blob.c
@@ -85,7 +85,7 @@ static bool test_hex_string(struct torture_context *tctx)
struct torture_suite *torture_local_util_data_blob(TALLOC_CTX *mem_ctx)
{
- struct torture_suite *suite = torture_suite_create(mem_ctx, "DATABLOB");
+ struct torture_suite *suite = torture_suite_create(mem_ctx, "datablob");
torture_suite_add_simple_test(suite, "string", test_string);
torture_suite_add_simple_test(suite, "string_null", test_string_null);
diff --git a/lib/util/tests/dlinklist.c b/lib/util/tests/dlinklist.c
index 8816dba765..8db0a02b88 100644
--- a/lib/util/tests/dlinklist.c
+++ b/lib/util/tests/dlinklist.c
@@ -124,7 +124,7 @@ static bool torture_local_dlinklist_simple(struct torture_context *tctx)
struct torture_suite *torture_local_dlinklist(TALLOC_CTX *mem_ctx)
{
- struct torture_suite *suite = torture_suite_create(mem_ctx, "DLINKLIST");
+ struct torture_suite *suite = torture_suite_create(mem_ctx, "dlinklist");
torture_suite_add_simple_test(suite, "dlinklist", torture_local_dlinklist_simple);
return suite;
}
diff --git a/lib/util/tests/file.c b/lib/util/tests/file.c
index 4aff0e9afd..c29e09868e 100644
--- a/lib/util/tests/file.c
+++ b/lib/util/tests/file.c
@@ -91,13 +91,12 @@ static bool test_afdgets(struct torture_context *tctx)
struct torture_suite *torture_local_util_file(TALLOC_CTX *mem_ctx)
{
- struct torture_suite *suite = torture_suite_create(mem_ctx, "FILE");
+ struct torture_suite *suite = torture_suite_create(mem_ctx, "file");
torture_suite_add_simple_test(suite, "file_load_save",
test_file_load_save);
- torture_suite_add_simple_test(suite, "afdgets",
- test_afdgets);
+ torture_suite_add_simple_test(suite, "afdgets", test_afdgets);
return suite;
}
diff --git a/lib/util/tests/genrand.c b/lib/util/tests/genrand.c
index 20a20ac7fa..50d77bb03a 100644
--- a/lib/util/tests/genrand.c
+++ b/lib/util/tests/genrand.c
@@ -59,7 +59,7 @@ static bool test_generate_random_str(struct torture_context *tctx)
struct torture_suite *torture_local_genrand(TALLOC_CTX *mem_ctx)
{
- struct torture_suite *suite = torture_suite_create(mem_ctx, "GENRAND");
+ struct torture_suite *suite = torture_suite_create(mem_ctx, "genrand");
torture_suite_add_simple_test(suite, "reseed_callback", test_reseed_callback);
torture_suite_add_simple_test(suite, "check_password_quality", test_check_password_quality);
torture_suite_add_simple_test(suite, "generate_random_str", test_generate_random_str);
diff --git a/lib/util/tests/idtree.c b/lib/util/tests/idtree.c
index d89fb8c489..ba7b2e7337 100644
--- a/lib/util/tests/idtree.c
+++ b/lib/util/tests/idtree.c
@@ -115,7 +115,7 @@ static bool torture_local_idtree_simple(struct torture_context *tctx)
struct torture_suite *torture_local_idtree(TALLOC_CTX *mem_ctx)
{
- struct torture_suite *suite = torture_suite_create(mem_ctx, "IDTREE");
+ struct torture_suite *suite = torture_suite_create(mem_ctx, "idtree");
torture_suite_add_simple_test(suite, "idtree", torture_local_idtree_simple);
return suite;
}
diff --git a/lib/util/tests/parmlist.c b/lib/util/tests/parmlist.c
index c1bd69d2b0..45e7ec3efa 100644
--- a/lib/util/tests/parmlist.c
+++ b/lib/util/tests/parmlist.c
@@ -94,7 +94,7 @@ static bool test_get_string_list(struct torture_context *tctx)
struct torture_suite *torture_local_util_parmlist(TALLOC_CTX *mem_ctx)
{
- struct torture_suite *suite = torture_suite_create(mem_ctx, "PARMLIST");
+ struct torture_suite *suite = torture_suite_create(mem_ctx, "parmlist");
torture_suite_add_simple_test(suite, "get_int", test_get_int);
torture_suite_add_simple_test(suite, "get_string", test_get_string);
diff --git a/lib/util/tests/str.c b/lib/util/tests/str.c
index 3bd6a02fdc..6b38feaf43 100644
--- a/lib/util/tests/str.c
+++ b/lib/util/tests/str.c
@@ -94,7 +94,7 @@ static bool test_string_sub_talloc_multiple(struct torture_context *tctx)
struct torture_suite *torture_local_util_str(TALLOC_CTX *mem_ctx)
{
- struct torture_suite *suite = torture_suite_create(mem_ctx, "STR");
+ struct torture_suite *suite = torture_suite_create(mem_ctx, "str");
torture_suite_add_simple_test(suite, "string_sub_simple",
test_string_sub_simple);
diff --git a/lib/util/tests/strlist.c b/lib/util/tests/strlist.c
index 3a7f2a5cc5..21b7b1dd13 100644
--- a/lib/util/tests/strlist.c
+++ b/lib/util/tests/strlist.c
@@ -469,7 +469,7 @@ static bool test_list_append_const(struct torture_context *tctx)
struct torture_suite *torture_local_util_strlist(TALLOC_CTX *mem_ctx)
{
- struct torture_suite *suite = torture_suite_create(mem_ctx, "STRLIST");
+ struct torture_suite *suite = torture_suite_create(mem_ctx, "strlist");
int i;
for (i = 0; i < ARRAY_SIZE(test_lists_shell_strings); i++) {
diff --git a/lib/util/tests/time.c b/lib/util/tests/time.c
index 78e8121b63..592f88f88b 100644
--- a/lib/util/tests/time.c
+++ b/lib/util/tests/time.c
@@ -100,7 +100,7 @@ static bool test_get_time_zone(struct torture_context *tctx)
struct torture_suite *torture_local_util_time(TALLOC_CTX *mem_ctx)
{
- struct torture_suite *suite = torture_suite_create(mem_ctx, "TIME");
+ struct torture_suite *suite = torture_suite_create(mem_ctx, "time");
torture_suite_add_simple_test(suite, "null_time", test_null_time);
torture_suite_add_simple_test(suite, "get_time_zone", test_get_time_zone);