Commit 441a3cb1 authored by Rusty Russell's avatar Rusty Russell

ccanlint: make fewer tests compulsory.

Compulsory means "malformed", we might get rid of it altogether, since
any test can mark "fail" and make ccanlint exit with non-zero status.

Now we only have four compulsory tests:
   info_exists               Module has _info file
   depends_exist             Module's CCAN dependencies can be found
   objects_build             Module object files can be built
   module_builds             Module can be built from object files
parent c5940717
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
#include <err.h> #include <err.h>
#include <string.h> #include <string.h>
#include <ctype.h> #include <ctype.h>
#include "build.h" #include "../compulsory_tests/build.h"
static const char *can_build(struct manifest *m) static const char *can_build(struct manifest *m)
{ {
......
...@@ -24,7 +24,7 @@ static void check_has_main_header(struct manifest *m, ...@@ -24,7 +24,7 @@ static void check_has_main_header(struct manifest *m,
score->pass = true; score->pass = true;
score->score = score->total; score->score = score->total;
return; return;
} }
} }
score->error = talloc_asprintf(score, score->error = talloc_asprintf(score,
"You have no %s/%s.h header file.\n\n" "You have no %s/%s.h header file.\n\n"
......
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