diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2011-11-15 12:42:25 +1030 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2011-11-15 12:42:25 +1030 |
commit | 441a3cb13e428cfa4973d83acb68e231a7cd4cf4 (patch) | |
tree | 6322ece34fdadc2f5ce30719e302b2698bfac3ce | |
parent | c59407178991758de6541740f912578e33c7e50b (diff) |
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
-rw-r--r-- | tools/ccanlint/tests/depends_build.c (renamed from tools/ccanlint/compulsory_tests/depends_build.c) | 2 | ||||
-rw-r--r-- | tools/ccanlint/tests/main_header_compiles.c (renamed from tools/ccanlint/compulsory_tests/main_header_compiles.c) | 0 | ||||
-rw-r--r-- | tools/ccanlint/tests/main_header_exists.c (renamed from tools/ccanlint/compulsory_tests/main_header_exists.c) | 2 | ||||
-rw-r--r-- | tools/ccanlint/tests/module_links.c (renamed from tools/ccanlint/compulsory_tests/module_links.c) | 0 |
4 files changed, 2 insertions, 2 deletions
diff --git a/tools/ccanlint/compulsory_tests/depends_build.c b/tools/ccanlint/tests/depends_build.c index ea5c3926..e7faa1f1 100644 --- a/tools/ccanlint/compulsory_tests/depends_build.c +++ b/tools/ccanlint/tests/depends_build.c @@ -13,7 +13,7 @@ #include <err.h> #include <string.h> #include <ctype.h> -#include "build.h" +#include "../compulsory_tests/build.h" static const char *can_build(struct manifest *m) { diff --git a/tools/ccanlint/compulsory_tests/main_header_compiles.c b/tools/ccanlint/tests/main_header_compiles.c index 99f3aa38..99f3aa38 100644 --- a/tools/ccanlint/compulsory_tests/main_header_compiles.c +++ b/tools/ccanlint/tests/main_header_compiles.c diff --git a/tools/ccanlint/compulsory_tests/main_header_exists.c b/tools/ccanlint/tests/main_header_exists.c index 68ea1359..b6150dc8 100644 --- a/tools/ccanlint/compulsory_tests/main_header_exists.c +++ b/tools/ccanlint/tests/main_header_exists.c @@ -24,7 +24,7 @@ static void check_has_main_header(struct manifest *m, score->pass = true; score->score = score->total; return; - } + } } score->error = talloc_asprintf(score, "You have no %s/%s.h header file.\n\n" diff --git a/tools/ccanlint/compulsory_tests/module_links.c b/tools/ccanlint/tests/module_links.c index 0bf98215..0bf98215 100644 --- a/tools/ccanlint/compulsory_tests/module_links.c +++ b/tools/ccanlint/tests/module_links.c |