]> git.ozlabs.org Git - ccan/blobdiff - ccan/generator/_info
ccanlint: Move ccanlint test options from _info comments to code
[ccan] / ccan / generator / _info
index a6570e373e8e2489f443fd2e65385eb2ae2567e8..aa6048e9c3f27aa5701cc16c94881d37ec9eb39f 100644 (file)
@@ -2,6 +2,8 @@
 #include <stdio.h>
 #include <string.h>
 
 #include <stdio.h>
 #include <string.h>
 
+#include <ccan/coroutine/coroutine.h>
+
 /**
  * generator - generators for C
  *
 /**
  * generator - generators for C
  *
  *
  * Author: David Gibson <david@gibson.dropbear.id.au>
  * License: LGPL (v2.1 or any later version)
  *
  * Author: David Gibson <david@gibson.dropbear.id.au>
  * License: LGPL (v2.1 or any later version)
- *
- * Ccanlint:
- *      // We need several gcc extensions
- *     objects_build_without_features FAIL
- *      tests_compile_without_features FAIL
- *     tests_helpers_compile_without_features FAIL
  */
 int main(int argc, char *argv[])
 {
  */
 int main(int argc, char *argv[])
 {
@@ -55,17 +51,34 @@ int main(int argc, char *argv[])
                return 1;
 
        if (strcmp(argv[1], "depends") == 0) {
                return 1;
 
        if (strcmp(argv[1], "depends") == 0) {
-               printf("ccan/build_assert\n");
-               printf("ccan/ptrint\n");
                printf("ccan/alignof\n");
                printf("ccan/alignof\n");
+               printf("ccan/coroutine\n");
                printf("ccan/cppmagic\n");
                printf("ccan/cppmagic\n");
+               printf("ccan/compiler\n");
                return 0;
        }
 
                return 0;
        }
 
+       if (strcmp(argv[1], "ported") == 0) {
+#if COROUTINE_AVAILABLE
+               printf("\n");
+               return 1;
+#else
+               printf("Needs coroutine support\n");
+#endif
+       }
+
        if (strcmp(argv[1], "testdepends") == 0) {
                printf("ccan/str\n");
                return 0;
        }
 
        if (strcmp(argv[1], "testdepends") == 0) {
                printf("ccan/str\n");
                return 0;
        }
 
+       if (strcmp(argv[1], "ccanlint") == 0) {
+               /* We need several gcc extensions */
+               printf("objects_build_without_features FAIL\n");
+               printf("tests_compile_without_features FAIL\n");
+               printf("tests_helpers_compile_without_features FAIL\n");
+               return 0;
+       }
+
        return 1;
 }
        return 1;
 }