Commit 357700fd authored by Rusty Russell's avatar Rusty Russell

ccanlint: clean up test short descriptions

parent 218c9c23
...@@ -63,7 +63,7 @@ static const char *describe_build(struct manifest *m, void *check_result) ...@@ -63,7 +63,7 @@ static const char *describe_build(struct manifest *m, void *check_result)
struct ccanlint build = { struct ccanlint build = {
.key = "build", .key = "build",
.name = "Module can be built", .name = "Module can be built from object files",
.total_score = 1, .total_score = 1,
.check = do_build, .check = do_build,
.describe = describe_build, .describe = describe_build,
......
...@@ -84,8 +84,8 @@ static const char *describe_use_build(struct manifest *m, void *check_result) ...@@ -84,8 +84,8 @@ static const char *describe_use_build(struct manifest *m, void *check_result)
} }
struct ccanlint check_build = { struct ccanlint check_build = {
.key = "check-build", .key = "check-link",
.name = "Module can be used", .name = "Module can be linked against trivial program",
.total_score = 1, .total_score = 1,
.check = check_use_build, .check = check_use_build,
.describe = describe_use_build, .describe = describe_use_build,
......
...@@ -84,7 +84,7 @@ static const char *describe_depends_built(struct manifest *m, ...@@ -84,7 +84,7 @@ static const char *describe_depends_built(struct manifest *m,
struct ccanlint depends_built = { struct ccanlint depends_built = {
.key = "depends-built", .key = "depends-built",
.name = "CCAN dependencies are built", .name = "Module's CCAN dependencies are already built",
.total_score = 1, .total_score = 1,
.check = check_depends_built, .check = check_depends_built,
.describe = describe_depends_built, .describe = describe_depends_built,
......
...@@ -67,7 +67,7 @@ static const char *describe_depends_exist(struct manifest *m, ...@@ -67,7 +67,7 @@ static const char *describe_depends_exist(struct manifest *m,
struct ccanlint depends_exist = { struct ccanlint depends_exist = {
.key = "depends-exist", .key = "depends-exist",
.name = "CCAN dependencies are present", .name = "Module's CCAN dependencies are present",
.total_score = 1, .total_score = 1,
.check = check_depends_exist, .check = check_depends_exist,
.describe = describe_depends_exist, .describe = describe_depends_exist,
......
...@@ -58,7 +58,7 @@ static const char *describe_includes_build(struct manifest *m, ...@@ -58,7 +58,7 @@ static const char *describe_includes_build(struct manifest *m,
struct ccanlint includes_build = { struct ccanlint includes_build = {
.key = "include-main", .key = "include-main",
.name = "Can compile against main header", .name = "Modules main header compiles",
.total_score = 1, .total_score = 1,
.check = check_includes_build, .check = check_includes_build,
.describe = describe_includes_build, .describe = describe_includes_build,
......
...@@ -57,7 +57,7 @@ static const char *describe_compile_test_helpers(struct manifest *m, ...@@ -57,7 +57,7 @@ static const char *describe_compile_test_helpers(struct manifest *m,
struct ccanlint compile_test_helpers = { struct ccanlint compile_test_helpers = {
.key = "compile-helpers", .key = "compile-helpers",
.name = "Compiling test helper files", .name = "Module test helper objects compile",
.total_score = 1, .total_score = 1,
.check = do_compile_test_helpers, .check = do_compile_test_helpers,
.describe = describe_compile_test_helpers, .describe = describe_compile_test_helpers,
......
...@@ -183,7 +183,7 @@ static const char *describe_compile_tests(struct manifest *m, ...@@ -183,7 +183,7 @@ static const char *describe_compile_tests(struct manifest *m,
struct ccanlint compile_tests = { struct ccanlint compile_tests = {
.key = "compile", .key = "compile",
.name = "Compile tests succeed", .name = "Module tests compile",
.score = score_compile_tests, .score = score_compile_tests,
.check = do_compile_tests, .check = do_compile_tests,
.describe = describe_compile_tests, .describe = describe_compile_tests,
......
...@@ -72,7 +72,7 @@ static void create_info_template(struct manifest *m, void *check_result) ...@@ -72,7 +72,7 @@ static void create_info_template(struct manifest *m, void *check_result)
struct ccanlint has_info = { struct ccanlint has_info = {
.key = "info", .key = "info",
.name = "Has _info file", .name = "Module has _info file",
.check = check_has_info, .check = check_has_info,
.describe = describe_has_info, .describe = describe_has_info,
.handle = create_info_template, .handle = create_info_template,
......
...@@ -36,7 +36,7 @@ static const char *describe_has_main_header(struct manifest *m, ...@@ -36,7 +36,7 @@ static const char *describe_has_main_header(struct manifest *m,
struct ccanlint has_main_header = { struct ccanlint has_main_header = {
.key = "has-main-header", .key = "has-main-header",
.name = "No main header file", .name = "Module has main header file",
.check = check_has_main_header, .check = check_has_main_header,
.describe = describe_has_main_header, .describe = describe_has_main_header,
}; };
......
...@@ -125,7 +125,7 @@ static void handle_no_tests(struct manifest *m, void *check_result) ...@@ -125,7 +125,7 @@ static void handle_no_tests(struct manifest *m, void *check_result)
struct ccanlint has_tests = { struct ccanlint has_tests = {
.key = "has-tests", .key = "has-tests",
.name = "Has tests", .name = "Module has tests",
.check = check_has_tests, .check = check_has_tests,
.describe = describe_has_tests, .describe = describe_has_tests,
.handle = handle_no_tests, .handle = handle_no_tests,
......
...@@ -125,7 +125,7 @@ static void run_under_debugger(struct manifest *m, void *check_result) ...@@ -125,7 +125,7 @@ static void run_under_debugger(struct manifest *m, void *check_result)
struct ccanlint run_tests = { struct ccanlint run_tests = {
.key = "run", .key = "run",
.name = "run and api tests run successfully", .name = "Module's run and api tests pass",
.score = score_run_tests, .score = score_run_tests,
.check = do_run_tests, .check = do_run_tests,
.describe = describe_run_tests, .describe = describe_run_tests,
......
...@@ -124,7 +124,7 @@ static unsigned int has_info_documentation_score(struct manifest *m, ...@@ -124,7 +124,7 @@ static unsigned int has_info_documentation_score(struct manifest *m,
struct ccanlint has_info_documentation = { struct ccanlint has_info_documentation = {
.key = "info-documentation", .key = "info-documentation",
.name = "Documentation in _info file", .name = "Module has documentation in _info",
.total_score = 3, .total_score = 3,
.score = has_info_documentation_score, .score = has_info_documentation_score,
.check = check_has_info_documentation, .check = check_has_info_documentation,
......
...@@ -133,7 +133,7 @@ static const char *describe_idempotent(struct manifest *m, void *check_result) ...@@ -133,7 +133,7 @@ static const char *describe_idempotent(struct manifest *m, void *check_result)
struct ccanlint idempotent = { struct ccanlint idempotent = {
.key = "idempotent", .key = "idempotent",
.name = "Headers are #ifndef/#define idempotent wrapped", .name = "Module headers are #ifndef/#define wrapped",
.total_score = 1, .total_score = 1,
.check = check_idempotent, .check = check_idempotent,
.describe = describe_idempotent, .describe = describe_idempotent,
......
...@@ -128,7 +128,7 @@ static void run_under_debugger_vg(struct manifest *m, void *check_result) ...@@ -128,7 +128,7 @@ static void run_under_debugger_vg(struct manifest *m, void *check_result)
struct ccanlint run_tests_vg = { struct ccanlint run_tests_vg = {
.key = "valgrind", .key = "valgrind",
.name = "run and api tests under valgrind", .name = "Module's run and api tests succeed under valgrind",
.score = score_run_tests_vg, .score = score_run_tests_vg,
.check = do_run_tests_vg, .check = do_run_tests_vg,
.describe = describe_run_tests_vg, .describe = describe_run_tests_vg,
......
...@@ -41,7 +41,7 @@ static const char *describe_trailing_whitespace(struct manifest *m, ...@@ -41,7 +41,7 @@ static const char *describe_trailing_whitespace(struct manifest *m,
struct ccanlint trailing_whitespace = { struct ccanlint trailing_whitespace = {
.key = "trailing-whitespace", .key = "trailing-whitespace",
.name = "No lines with unnecessary trailing whitespace", .name = "Module's source code has no trailing whitespace",
.total_score = 1, .total_score = 1,
.check = check_trailing_whitespace, .check = check_trailing_whitespace,
.describe = describe_trailing_whitespace, .describe = describe_trailing_whitespace,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment