Browse Source

ccanlint: clean up test short descriptions

Rusty Russell 16 years ago
parent
commit
357700fd05

+ 1 - 1
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,

+ 2 - 2
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,

+ 1 - 1
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,

+ 1 - 1
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,

+ 1 - 1
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,

+ 1 - 1
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,

+ 1 - 1
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,

+ 1 - 1
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,

+ 1 - 1
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,
 };

+ 1 - 1
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,

+ 1 - 1
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,

+ 1 - 1
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,

+ 1 - 1
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,

+ 1 - 1
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,

+ 1 - 1
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,