Browse Source

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
Rusty Russell 14 years ago
parent
commit
441a3cb13e

+ 1 - 1
tools/ccanlint/compulsory_tests/depends_build.c → 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)
 {

+ 0 - 0
tools/ccanlint/compulsory_tests/main_header_compiles.c → tools/ccanlint/tests/main_header_compiles.c


+ 1 - 1
tools/ccanlint/compulsory_tests/main_header_exists.c → 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"

+ 0 - 0
tools/ccanlint/compulsory_tests/module_links.c → tools/ccanlint/tests/module_links.c