From: Rusty Russell Date: Fri, 9 Apr 2010 02:21:42 +0000 (+0930) Subject: ccanlint: clean up test short descriptions X-Git-Url: https://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=357700fd05c2cf25563a0058fd68f2ffea827e74 ccanlint: clean up test short descriptions --- diff --git a/tools/ccanlint/compulsory_tests/build.c b/tools/ccanlint/compulsory_tests/build.c index 8b530131..efc0b27a 100644 --- a/tools/ccanlint/compulsory_tests/build.c +++ b/tools/ccanlint/compulsory_tests/build.c @@ -63,7 +63,7 @@ static const char *describe_build(struct manifest *m, void *check_result) struct ccanlint build = { .key = "build", - .name = "Module can be built", + .name = "Module can be built from object files", .total_score = 1, .check = do_build, .describe = describe_build, diff --git a/tools/ccanlint/compulsory_tests/check_build.c b/tools/ccanlint/compulsory_tests/check_build.c index a0b59669..820cc9fe 100644 --- a/tools/ccanlint/compulsory_tests/check_build.c +++ b/tools/ccanlint/compulsory_tests/check_build.c @@ -84,8 +84,8 @@ static const char *describe_use_build(struct manifest *m, void *check_result) } struct ccanlint check_build = { - .key = "check-build", - .name = "Module can be used", + .key = "check-link", + .name = "Module can be linked against trivial program", .total_score = 1, .check = check_use_build, .describe = describe_use_build, diff --git a/tools/ccanlint/compulsory_tests/check_depends_built.c b/tools/ccanlint/compulsory_tests/check_depends_built.c index 854f4bc8..a3e42f26 100644 --- a/tools/ccanlint/compulsory_tests/check_depends_built.c +++ b/tools/ccanlint/compulsory_tests/check_depends_built.c @@ -84,7 +84,7 @@ static const char *describe_depends_built(struct manifest *m, struct ccanlint depends_built = { .key = "depends-built", - .name = "CCAN dependencies are built", + .name = "Module's CCAN dependencies are already built", .total_score = 1, .check = check_depends_built, .describe = describe_depends_built, diff --git a/tools/ccanlint/compulsory_tests/check_depends_exist.c b/tools/ccanlint/compulsory_tests/check_depends_exist.c index 28f581c5..aef2a24b 100644 --- a/tools/ccanlint/compulsory_tests/check_depends_exist.c +++ b/tools/ccanlint/compulsory_tests/check_depends_exist.c @@ -67,7 +67,7 @@ static const char *describe_depends_exist(struct manifest *m, struct ccanlint depends_exist = { .key = "depends-exist", - .name = "CCAN dependencies are present", + .name = "Module's CCAN dependencies are present", .total_score = 1, .check = check_depends_exist, .describe = describe_depends_exist, diff --git a/tools/ccanlint/compulsory_tests/check_includes_build.c b/tools/ccanlint/compulsory_tests/check_includes_build.c index 72df8ca8..2962765a 100644 --- a/tools/ccanlint/compulsory_tests/check_includes_build.c +++ b/tools/ccanlint/compulsory_tests/check_includes_build.c @@ -58,7 +58,7 @@ static const char *describe_includes_build(struct manifest *m, struct ccanlint includes_build = { .key = "include-main", - .name = "Can compile against main header", + .name = "Modules main header compiles", .total_score = 1, .check = check_includes_build, .describe = describe_includes_build, diff --git a/tools/ccanlint/compulsory_tests/compile_test_helpers.c b/tools/ccanlint/compulsory_tests/compile_test_helpers.c index 5c7a9ec6..127d972b 100644 --- a/tools/ccanlint/compulsory_tests/compile_test_helpers.c +++ b/tools/ccanlint/compulsory_tests/compile_test_helpers.c @@ -57,7 +57,7 @@ static const char *describe_compile_test_helpers(struct manifest *m, struct ccanlint compile_test_helpers = { .key = "compile-helpers", - .name = "Compiling test helper files", + .name = "Module test helper objects compile", .total_score = 1, .check = do_compile_test_helpers, .describe = describe_compile_test_helpers, diff --git a/tools/ccanlint/compulsory_tests/compile_tests.c b/tools/ccanlint/compulsory_tests/compile_tests.c index a614adb3..89ba29b9 100644 --- a/tools/ccanlint/compulsory_tests/compile_tests.c +++ b/tools/ccanlint/compulsory_tests/compile_tests.c @@ -183,7 +183,7 @@ static const char *describe_compile_tests(struct manifest *m, struct ccanlint compile_tests = { .key = "compile", - .name = "Compile tests succeed", + .name = "Module tests compile", .score = score_compile_tests, .check = do_compile_tests, .describe = describe_compile_tests, diff --git a/tools/ccanlint/compulsory_tests/has_info.c b/tools/ccanlint/compulsory_tests/has_info.c index a5c82526..4b6687e4 100644 --- a/tools/ccanlint/compulsory_tests/has_info.c +++ b/tools/ccanlint/compulsory_tests/has_info.c @@ -72,7 +72,7 @@ static void create_info_template(struct manifest *m, void *check_result) struct ccanlint has_info = { .key = "info", - .name = "Has _info file", + .name = "Module has _info file", .check = check_has_info, .describe = describe_has_info, .handle = create_info_template, diff --git a/tools/ccanlint/compulsory_tests/has_main_header.c b/tools/ccanlint/compulsory_tests/has_main_header.c index b404aef8..c2c82382 100644 --- a/tools/ccanlint/compulsory_tests/has_main_header.c +++ b/tools/ccanlint/compulsory_tests/has_main_header.c @@ -36,7 +36,7 @@ static const char *describe_has_main_header(struct manifest *m, struct ccanlint has_main_header = { .key = "has-main-header", - .name = "No main header file", + .name = "Module has main header file", .check = check_has_main_header, .describe = describe_has_main_header, }; diff --git a/tools/ccanlint/compulsory_tests/has_tests.c b/tools/ccanlint/compulsory_tests/has_tests.c index 930b4129..0fa11aaa 100644 --- a/tools/ccanlint/compulsory_tests/has_tests.c +++ b/tools/ccanlint/compulsory_tests/has_tests.c @@ -125,7 +125,7 @@ static void handle_no_tests(struct manifest *m, void *check_result) struct ccanlint has_tests = { .key = "has-tests", - .name = "Has tests", + .name = "Module has tests", .check = check_has_tests, .describe = describe_has_tests, .handle = handle_no_tests, diff --git a/tools/ccanlint/compulsory_tests/run_tests.c b/tools/ccanlint/compulsory_tests/run_tests.c index 2fd87a8c..581654a1 100644 --- a/tools/ccanlint/compulsory_tests/run_tests.c +++ b/tools/ccanlint/compulsory_tests/run_tests.c @@ -125,7 +125,7 @@ static void run_under_debugger(struct manifest *m, void *check_result) struct ccanlint run_tests = { .key = "run", - .name = "run and api tests run successfully", + .name = "Module's run and api tests pass", .score = score_run_tests, .check = do_run_tests, .describe = describe_run_tests, diff --git a/tools/ccanlint/tests/has_info_documentation.c b/tools/ccanlint/tests/has_info_documentation.c index aed22934..4d440e6d 100644 --- a/tools/ccanlint/tests/has_info_documentation.c +++ b/tools/ccanlint/tests/has_info_documentation.c @@ -124,7 +124,7 @@ static unsigned int has_info_documentation_score(struct manifest *m, struct ccanlint has_info_documentation = { .key = "info-documentation", - .name = "Documentation in _info file", + .name = "Module has documentation in _info", .total_score = 3, .score = has_info_documentation_score, .check = check_has_info_documentation, diff --git a/tools/ccanlint/tests/idempotent.c b/tools/ccanlint/tests/idempotent.c index 6ed17676..34b455c0 100644 --- a/tools/ccanlint/tests/idempotent.c +++ b/tools/ccanlint/tests/idempotent.c @@ -133,7 +133,7 @@ static const char *describe_idempotent(struct manifest *m, void *check_result) struct ccanlint idempotent = { .key = "idempotent", - .name = "Headers are #ifndef/#define idempotent wrapped", + .name = "Module headers are #ifndef/#define wrapped", .total_score = 1, .check = check_idempotent, .describe = describe_idempotent, diff --git a/tools/ccanlint/tests/run_tests_valgrind.c b/tools/ccanlint/tests/run_tests_valgrind.c index 6312a0a8..5819b5eb 100644 --- a/tools/ccanlint/tests/run_tests_valgrind.c +++ b/tools/ccanlint/tests/run_tests_valgrind.c @@ -128,7 +128,7 @@ static void run_under_debugger_vg(struct manifest *m, void *check_result) struct ccanlint run_tests_vg = { .key = "valgrind", - .name = "run and api tests under valgrind", + .name = "Module's run and api tests succeed under valgrind", .score = score_run_tests_vg, .check = do_run_tests_vg, .describe = describe_run_tests_vg, diff --git a/tools/ccanlint/tests/trailing_whitespace.c b/tools/ccanlint/tests/trailing_whitespace.c index f5bf5b9f..6b831a72 100644 --- a/tools/ccanlint/tests/trailing_whitespace.c +++ b/tools/ccanlint/tests/trailing_whitespace.c @@ -41,7 +41,7 @@ static const char *describe_trailing_whitespace(struct manifest *m, struct ccanlint trailing_whitespace = { .key = "trailing-whitespace", - .name = "No lines with unnecessary trailing whitespace", + .name = "Module's source code has no trailing whitespace", .total_score = 1, .check = check_trailing_whitespace, .describe = describe_trailing_whitespace,